| Server IP : 195.130.67.5 / Your IP : 216.73.217.127 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/plugins/system/nnframework/fields/multiselect/ |
Upload File : |
// no MooTools 1.1 support
if ( typeof( window['NNMultiSelect'] ) == "undefined" ) {
var NNMultiSelect = new Class({
initialize: function(options){
if ( options.datasrc.length > 5 ) {
var ul = options.datasrc;
var link = new Element('a',{
'id': 'toggle_'+ul.id,
'href': 'javascript://'
});
link.addEvent('click', function(el){
nnScripts.toggleSelectListSize(ul.id);
});
new Element('span',{ 'class': 'show' }).setText( nn_texts['maximize'] ).injectInside( link );
new Element('span',{ 'class': 'hide' }).setText( nn_texts['minimize'] ).setStyle( 'display', 'none' ).injectInside( link );
link.injectBefore( ul );
new Element('br').injectAfter( link );
}
}
});
window.addEvent('domready', function (){
$$('.nn_multiselect').each(function(multiselect){
new NNMultiSelect({'datasrc': multiselect});
});
});
}