芝麻web文件管理V1.00
编辑当前文件:/var/www/cognitio.in/wp-content/plugins/wp-event-manager/assets/js/admin-settings.min.js
var AdminSettings=function(){return{init:function(){jQuery(".nav-tab-wrapper a").on('click',AdminSettings.actions.tabClick);jQuery('.nav-tab-wrapper a:first').click();jQuery("#setting-event_manager_enable_registration").on('change',AdminSettings.actions.allowAccountCreation);jQuery("#setting-event_manager_submission_expire_options").on('change',AdminSettings.actions.selectEventExpiryOption)},actions:{tabClick:function(event){event.preventDefault();jQuery('.settings_panel').hide();jQuery('.nav-tab-active').removeClass('nav-tab-active');jQuery(jQuery(this).attr('href')).show();jQuery(this).addClass('nav-tab-active');var option=jQuery("#setting-event_manager_submission_expire_options:last option:selected").val();if(option=='days')jQuery('#setting-event_manager_submission_duration').closest('tr').show();else jQuery('#setting-event_manager_submission_duration').closest('tr').hide();return false},allowAccountCreation:function(event){if(jQuery(this).is(':checked')){jQuery('#setting-event_manager_registration_role').closest('tr').show();jQuery('#setting-event_manager_registration_username_from_email').closest('tr').show()}else{jQuery('#setting-event_manager_registration_role').closest('tr').hide();jQuery('#setting-event_manager_registration_username_from_email').closest('tr').hide()}event.preventDefault()}}}};AdminSettings=AdminSettings();jQuery(document).ready(function($){AdminSettings.init()});