| Server IP : 54.36.91.62 / Your IP : 216.73.217.112 Web Server : Apache System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : coopiak ( 151928) PHP Version : 8.3.23 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/coopiak/amisdesseniors-fr/nice/media/com_rsfeedback/js/fields/ |
Upload File : |
jQuery.fn.iconsList = function() {
var helper = {},
current_select = jQuery(this),
current_container = current_select.closest('.controls');
// Open / close icons list
current_container.find('.icons-list .selected').off();
current_container.find('.icons-list .selected').on('click', function() {
jQuery(this).next('.icons').toggleClass('in');
});
// Filter icons
current_container.find('.icons-list .filter').off();
current_container.find('.icons-list .filter').on('keyup', function() {
var value = jQuery(this).val(),
list = jQuery(this).next('.list');
list.find(' > li').each(function() {
if (jQuery(this).find(' > span').text().toLowerCase().indexOf(value.toLowerCase()) >= 0) {
jQuery(this).css('display', 'block');
} else {
jQuery(this).css('display', 'none');
}
});
});
// Change icon
current_container.find('.icons-list .list > li').off();
current_container.find('.icons-list .list > li').on('click', function() {
if (jQuery(this).hasClass('active')) {
return;
} else {
var selected_icon = current_container.find('.icons-list .selected'),
element_container = jQuery('#adminForm');
selected_icon.empty();
selected_icon.append(jQuery(this).html());
current_container.find('.icons-list .list > li').removeAttr('class');
jQuery(this).addClass('active');
if (selected_icon.find('i').length) {
if (selected_icon.find('i').hasClass('no-icon')) {
current_container.find('.iconslist').val('');
} else {
current_container.find('.iconslist').val(selected_icon.find('i').attr('class').replace('fa fa-', ''));
}
}
}
current_container.find('.icons').removeClass('in');
});
}