芝麻web文件管理V1.00
编辑当前文件:/var/www/cognitio.in/wp-content/plugins/the-events-calendar/src/resources/js/event-editor.min.js
/** * This JS file was auto-generated via Terser. * * Contributors should avoid editing this file, but instead edit the associated * non minified file file. For more information, check out our engineering docs * on how we handle JS minification in our engineering docs. * * @see: https://evnt.is/dev-docs-minification */ var tribe_events_event_editor=tribe_events_event_editor||{};!function($,obj){"use strict";obj.selectors={sticky_in_month_view_checkbox:'input[name="EventShowInCalendar"]',featured_event_checkbox:'input[name="feature_event"]',organizer:{area:"#event_tribe_organizer",delete_button:".tribe-delete-this",add_button:"#event_tribe_organizer .tribe-add-post",post_dropdown:".linked-post-dropdown",saved_organizers:".saved-linked-post"}},obj.organizer={},obj.organizer.deleteButtonDisplayLogic=function(){const $organizers=$(obj.selectors.organizer.area).find(obj.selectors.organizer.saved_organizers);$(obj.selectors.organizer.area).find(obj.selectors.organizer.delete_button).each((function(){if($organizers.length>1)return void $(this).show();const $organizer_dropdown=$(obj.selectors.organizer.area+" "+obj.selectors.organizer.post_dropdown);obj.organizer.addButtonLogic($organizer_dropdown.val()),$(this).hide()}))},obj.organizer.addButtonLogic=function(selectValue){"-1"!==selectValue?$(obj.selectors.organizer.add_button).show():$(obj.selectors.organizer.add_button).hide()},obj.organizer.bindEvents=function(){$(obj.selectors.organizer.area).on("change",obj.selectors.organizer.post_dropdown,(function(){obj.organizer.addButtonLogic(this.value),obj.organizer.deleteButtonDisplayLogic()})),$(obj.selectors.organizer.area).on("click",obj.selectors.organizer.delete_button,(function(){setTimeout((function(){obj.organizer.deleteButtonDisplayLogic()}),525)}))},obj.auto_enable_sticky_field=function(){$(this).prop("checked")&&$(obj.selectors.sticky_in_month_view_checkbox).prop("checked",!0)},obj.bindFeaturedEvents=function(){$(obj.selectors.featured_event_checkbox).on("change",obj.auto_enable_sticky_field),$(obj).trigger("event-editor-post-init.tribe")},obj.init=function(){$(obj.selectors.organizer.add_button).hide(),obj.organizer.deleteButtonDisplayLogic(),obj.organizer.bindEvents(),obj.bindFeaturedEvents()},obj.init()}(jQuery,tribe_events_event_editor);