| Server IP : 195.130.67.5 / Your IP : 216.73.217.154 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/inetpub/wwwroot/icd/jeventsComp/admin/assets/js/ |
Upload File : |
var $F = function(element) {
element2 = $(element);
return element2.getValue();
}
defaultsEditorPlugin = {
update: function (pluginName) {
var pluginNode = $(pluginName);
while (pluginNode.firstChild) {
pluginNode.removeChild(pluginNode.firstChild);
}
},
optgroup: function(pluginNode, label){
var group = new Element('optgroup', {'label':label});
pluginNode.appendChild(group);
return group;
},
node: function(parent, label, value){
optnode = new Element('option',{value:label+":"+value});
parent.appendChild(optnode);
optnode.text = label;
},
insert: function ( fieldName, pluginNode) {
var textToInsert = '{{' + $F(pluginNode) + '}}';
// Bail if the selectedIndex is 0 (as this is the 'Select...' option)
if ( $(pluginNode).selectedIndex == 0 ) return true;
// insert the text using the library code
$result = jInsertEditorText(textToInsert,fieldName);
// reset the selected element back to 'Select...'
$(pluginNode).selectedIndex = 0;
return true;
}
}