芝麻web文件管理V1.00
编辑当前文件:/var/www/cognitio.in/wp-content/plugins/wp-event-manager/assets/js/venue-dashboard.js
var VenueDashboard= function () { ///
Constructor function of the event VenueDashboard class.
///
return { ///
///Initializes the event dashboard. ///
///
///
1.0.0
init: function() { Common.logInfo("VenueDashboard.init..."); if(jQuery('.event-dashboard-action-delete').length >0) { jQuery('.event-dashboard-action-delete').css({'cursor':'pointer'}); //for delete event confirmation dialog / tooltip jQuery('.event-dashboard-action-delete').on('click', VenueDashboard.confirmation.showDialog); } if(jQuery('.event-venue-count').length >0) { //show event list dialog / tooltip jQuery('.event-venue-count').on('click', function(){ jQuery(this).next('.venue-events-list').slideToggle(); }); } }, confirmation:{ ///
/// Show bootstrap third party confirmation dialog when click on 'Delete' options on event dashboard page where show delete event option. ///
///
///
///
1.0.0
showDialog: function(event) { Common.logInfo("VenueDashboard.confirmation.showDialog..."); return confirm(event_manager_venue_dashboard.i18n_confirm_delete); event.preventDefault(); }, } //end of comfirmation } //enf of return }; //end of class VenueDashboard= VenueDashboard(); jQuery(document).ready(function($) { VenueDashboard.init(); });