芝麻web文件管理V1.00
编辑当前文件:/var/www/cognitio.in/wp-content/plugins/wp-event-manager/assets/js/event-registration.js
var EventRegistration= function () { ///
Constructor function of the event EventRegistration class.
///
return { ///
///Initializes the EventRegistration. ///
///
///
1.0.0
init: function() { // Slide toggle jQuery( '.registration_details' ).hide(); jQuery(".registration_button").on('click',EventRegistration.actions.toggleDetails); jQuery('form.event-manager-registration-form').on('submit', EventRegistration.actions.disableSubmit); }, actions : { ///
/// Click on registration details. ///
///
///
///
1.0.0
toggleDetails: function(event) { event.preventDefault(); jQuery( event.target ).toggleClass('wpem-active-button'); jQuery( '.registration_details' ).slideToggle(); }, disableSubmit: function (event) { jQuery('p button[type="submit"]').attr('style', 'pointer-events: none;'); } } } //enf of return }; //end of class EventRegistration = EventRegistration(); jQuery(document).ready(function($) { EventRegistration.init(); });