File "admin-upgrade-page.min.js"
Full Path: /home/londdqdw/public_html/06/wp-content/plugins/the-events-calendar/src/resources/js/admin-upgrade-page.min.js
File size: 1.18 KB
MIME-type: text/plain
Charset: utf-8
/**
* 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
*/
tribe.upgradePage=tribe.upgradePage||{},function($,obj){"use strict";obj.setup=function(){if("upgrade"!=$("#current-settings-tab").val()){if("1"==tribe_upgrade.v2_is_enabled)return;return $(".tribe_settings > h1").append('<button id="upgrade-button">✨ '+tribe_upgrade.button_text+"</button>"),void $(document).on("click","#upgrade-button",(function(e){document.location="?page=tribe-common&tab=upgrade&post_type=tribe_events"}))}$("#tribeSaveSettings").hide(),$("#tribe-field-views_v2_enabled input").hide().prop("checked",!0),$(document).on("click","#tribe-upgrade-step1 button",(function(e){e.preventDefault(),$("#tribe-upgrade-step1").addClass("hidden"),$("#tribe-upgrade-step2").removeClass("hidden")})),$(document).on("click","#tribe-upgrade-step2 button",(function(e){e.preventDefault(),$("#tribeSaveSettings").trigger("click")}))},$(obj.setup)}(jQuery,tribe.upgradePage);