Plugin Directory

source: event-post/tags/5.9.5/build/calendar/event-calendar.js @ 3087067

Last change on this file since 3087067 was 3087067, checked in by bastho, 2 months ago

Deploy v5.9.5 - Set stable tag to 5.9.5

File size: 2.3 KB
Line 
1(()=>{"use strict";jQuery(document).ready((function(){function t(){jQuery(".eventpost_calendar table td h4").each((function(){var t=jQuery(this).next(".event_data");jQuery(this).css({borderColor:t.css("border-left-color"),color:t.css("border-left-color"),backgroundColor:t.css("background-color")})})),jQuery(".eventpost_cal_bt").on("click",(function(){var a=jQuery(this).parents(".eventpost_calendar");a.attr("data-current-date",jQuery(this).data("date")).trigger("UpdateCalendar"),jQuery.get(window.EventPost.front.ajaxurl,{action:"EventPostCalendar",date:jQuery(this).data("date"),cat:a.data("cat"),mf:a.data("mf"),dp:a.data("dp"),color:a.data("color"),display_title:a.data("title"),thumbnail:a.data("thumbnail"),tax_name:a.data("tax_name"),tax_term:a.data("tax_term")},(function(e){a.html(e),a.trigger("UpdatedCalendar"),t()}))})),jQuery(".eventpost_cal_link").on("click",(function(){var t=jQuery(this).parents(".eventpost_calendar");t.attr("data-current-day",jQuery(this).data("date")),jQuery(".eventpost_cal_list",t).fadeOut((function(){jQuery(this).remove()})),jQuery.get(window.EventPost.front.ajaxurl,{action:"EventPostCalendarDate",date:jQuery(this).data("date"),cat:t.data("cat"),mf:t.data("mf"),dp:t.data("dp"),color:t.data("color"),display_title:t.data("title"),thumbnail:t.data("thumbnail"),tax_name:t.data("tax_name"),tax_term:t.data("tax_term")},(function(a){t.append('<div class="eventpost_cal_list"><button class="eventpost_cal_close">x</button>'+a+"</div>"),t.find(".eventpost_cal_list").hide(1).fadeIn(500),t.find(".eventpost_cal_close").on("click",(function(){jQuery(this).parent().hide(500).remove(),t.attr("data-current-day","").trigger("CloseDay")})),t.trigger("OpenDay")}))}))}jQuery(".eventpost_calendar").each((function(){var a=jQuery(this);a.html('<img src="'+window.EventPost.front.imgpath+'cal-loader.gif" class="eventpost_cal_loader"/>').attr("data-current-date",jQuery(this).data("date")),jQuery.get(window.EventPost.front.ajaxurl,{action:"EventPostCalendar",date:jQuery(this).data("date"),cat:jQuery(this).data("cat"),mf:jQuery(this).data("mf"),dp:jQuery(this).data("dp"),color:jQuery(this).data("color"),display_title:jQuery(this).data("title"),thumbnail:jQuery(this).data("thumbnail"),tax_name:jQuery(this).data("tax_name"),tax_term:jQuery(this).data("tax_term")},(function(e){a.html(e).trigger("PrintCalendar"),t()}))}))}))})();
Note: See TracBrowser for help on using the repository browser.