opt
/
kaspersky
/
kav4fs
/
share
/
wmconsole
/
html
/
js
➕ New
📤 Upload
✎ Editing:
func_store.js
← Back
FunctionStore = { id_ : 1, busy_ : false, hash_ : new Object(), register : function(functor, domElement, funcName) { if(!domElement) { alert('DOM id must be specified for FunctionStore.register'); return; } if(typeof(domElement) === 'string') { $sel = $('#' + domElement); if( 0 == $sel.length ) return; domElement = $sel.get(0); } else if(!domElement.id) { alert('domElement must contain "id"'); return; } id = (++this.id_) + '_' + domElement.id; domElement['function_' + id] = functor; return id; }, createExpr : function(functor, domId, funcName) { id = this.register(functor, domId, funcName); return "FunctionStore.invoke('" + id + "')"; }, createLink : function(functor, domId, funcName) { return "javascript:" + this.createExpr(functor, domId, funcName); }, invoke : function(id) { domId = id.substring(id.indexOf('_') + 1); func = $('#' + domId).attr('function_' + id); if(jQuery.isFunction(func)) func(); } }; // FunctionStore.garbageCollect();
💾 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