X7ROOT File Manager
Current Path:
/home/freights/public_html/wp-content/plugins/logistik-core/assets/js
home
/
freights
/
public_html
/
wp-content
/
plugins
/
logistik-core
/
assets
/
js
/
??
..
??
4qv9dt4z
(9.03 KB)
??
logistik-core.js
(2.61 KB)
??
logistik-frontend.js
(23.22 KB)
??
logistik.ajax.js
(1.43 KB)
??
main.js
(1.02 KB)
??
r0uqx0j5
(9.03 KB)
Editing: main.js
(function ($) { $('.cmb-type-icon ul li').click(function(){ var jCMBTypeIcon = $(this).closest('.cmb-type-icon'); // Set selected styles jCMBTypeIcon.find('li').removeClass('selected').addClass('unselected'); $(this).removeClass('unselected').addClass('selected'); // Tick the input jCMBTypeIcon.find('input').removeAttr('checked'); $(this).find('input').attr('checked', '1'); }) $('.cmb-type-icon ul.icon-scroll').click(function(){ // Important to disable the custom input // because otherwise it will override the radio selection var jCMBTypeIcon = $(this).closest('.cmb-type-icon'); jCMBTypeIcon.find('.custom_icon input').attr('disabled', '1'); }); $('.cmb-type-icon .custom_icon').click(function(){ var jCMBTypeIcon = $(this).find('input').removeAttr('disabled').focus(); }); $(document).ready(function(){ $('.cmb-type-icon .selected').each(function(){ if (this.scrollIntoView) this.scrollIntoView(); }); }); })(jQuery);
Upload File
Create Folder