golden hour
/var/www/html/wp-content/plugins/designthemes-webinar/modules/google-classroom/assets/js
⬆️ Go Up
Upload
File/Folder
Size
Actions
backend.js
1.38 KB
Del
OK
frontend.js
737 B
Del
OK
Edit: backend.js
jQuery(document).ready(function() { jQuery( 'body' ).delegate( '.dtwebinar-save-options-settings', 'click', function(e) { var this_item = jQuery(this), settings = this_item.attr('data-settings'); validate_settings = this_item.attr('data-validate-settings'); var form = jQuery('.dtWebinarOptionSettings')[0]; var data = new FormData(form); data.append('action', 'dtwebinar_save_options_settings'); data.append('settings', settings); data.append('validate-settings', validate_settings); jQuery.ajax({ type: "POST", url: dtwebinarbackendobject.ajaxurl, data: data, processData: false, contentType: false, cache: false, beforeSend: function(){ this_item.prepend( '<span><i class="fa fa-spinner fa-spin"></i></span>' ); }, success: function (response) { this_item.parents('.dtWebinarOptionSettings').find('.dtwebinar-option-settings-response-holder').html(response.message); this_item.parents('.dtWebinarOptionSettings').find('.dtwebinar-option-settings-response-holder').show(); window.setTimeout(function(){ this_item.parents('.dtWebinarOptionSettings').find('.dtwebinar-option-settings-response-holder').fadeOut('slow'); }, 2000); window.location.reload(true); }, complete: function(){ this_item.find('span').remove(); } }); e.preventDefault(); }); });
Save