opt
/
kaspersky
/
kav4fs
/
share
/
wmconsole
/
html
/
proto
/
js
➕ New
📤 Upload
✎ Editing:
control.js
← Back
var checkUrlUpdate_lastUrl = ""; // var lastSel = "CONTROL_SUMMARY"; var editTask = new EditTaskModel(); function ControlObject(key,link,href){ this.key = key; this.link = "pages/" + link; this.href = href; } controlObject = [ ["CONTROL_SUMMARY", "#summary"], ["CONTROL_RTP", "#rtp"], ["CONTROL_ODS", "#ods"], ["CONTROL_UPDATE", "#update"], ["CONTROL_QUARANTINE", "#quarantine"], ["CONTROL_BACKUP", "#backup"], ["CONTROL_REPORTS", "#reports"], ["CONTROL_LOGS", "#logs"], ["CONTROL_LICENCE", "#licence"], ["CONTROL_SETTINGS", "#settings"], ["CONTROL_NOTIFICATIONS", "#notifications"] // , ["CONTROL_EXCEPTIONS", "#exceptions"] ]; function LocationChanged(hash) { var currentHash = window.location.hash; window.location.href = hash; for(var i = 0; i < controlObject.length;i++) { if(hash.indexOf(controlObject[i][1]) < 0) continue; var desc = describeTaskByLocation(); var link_ = controlObject[i][1]; function showPage(){ clickControl(controlObject[i][0]); loadPage(getLinkPage(link_)) $('#view_title').html(_res(getLinkKeyTitle(link_))); $('#bigIconsPane').removeClass().addClass('bigIcons icon_'+controlObject[i][0]); } if(!editTask.setTask(desc, showPage)) showPage(); if(editTask.stopClick === true) { window.location.href = currentHash; return true; } return; } window.location.href = '#summary'; } function addElement(num) { var id = controlObject[num][0]; var hash = controlObject[num][1]; $div = $('<div><a></a></div>') .addClass('li leftMenuItem') .attr('id', id); $div.find('> a') .attr('href', hash) .attr('title', _res('HINT_LMENU_'+controlObject[num][0].split("_",2)[1])) .html(_res(id)) .history(function(){ var myNode = document.getElementById("view_edit"); while (myNode.firstChild) { myNode.removeChild(myNode.firstChild); } return LocationChanged(hash); }); $('#listControl').append($div); } function createLeftMenu() { $.ajaxHistory.initialize(); $.ajaxHistory.update(window.location.hash); for(var i=0; i < controlObject.length; i++) addElement(i); LocationChanged(window.location.hash); ic.registerConnectionErrorHandler(function(connLostId){ $('#listControl a').disable().fadeTo('fast', 0.65); }) ic.registerConnectionRestoredHandler(function(connLostId){ $('#listControl a').enable().fadeTo('fast', 1.0); }) } function clickControl(num) { $('td#listControl > div').find('>a, >span').removeClass('active'); $('td#listControl > div#' + num).find('>a,>span').addClass('active'); } function loadPage(url) { $("#view_data").empty(); $("#view_edit").loadCache(url); // PagesCache.load( $("#view_edit"), url ); } function checkUrlUpdate() { /* if(typeof(checkUrlUpdateTimer) !== 'undefined') clearTimeout(checkUrlUpdateTimer); if(misc_loginFormActive()) return; var url = window.location.href; if(checkUrlUpdate_lastUrl != url) { checkUrlUpdate_lastUrl = url; for(var i = 0; i < controlObject.length;i++) { if(url.indexOf(controlObject[i][1]) < 0) continue; var desc = describeTaskByLocation(); var link_ = controlObject[i][1]; var showPage = function(){ loadPage(getLinkPage(link_)) $('#view_title').html(getLocalString(getLinkKeyTitle(link_))); }; if(!editTask.setTask(desc, showPage)) { clickControl(controlObject[i][0]) showPage(); } } } checkUrlUpdateTimer = setTimeout(checkUrlUpdate, 3000);*/ }
💾 Save Changes
Cancel
📤 Upload File
×
Select File
Upload
Cancel
➕ Create New
×
Type
📄 File
📁 Folder
Name
Create
Cancel
✎ Rename Item
×
Current Name
New Name
Rename
Cancel
🔐 Change Permissions
×
Target File
Permission (e.g., 0755, 0644)
0755
0644
0777
Apply
Cancel