PluginProbe
Booking Calendar / 11.9
Booking Calendar v11.9
11.9 11.8.4 11.8.3 11.8.2 11.8.1 11.8 11.7 11.6.1 11.6 11.5 11.4.3 11.4.2 11.4.1 11.4 11.3 11.2.1 11.2 11.1 11.0 10.15.7 10.15.6 10.1.3 10.10 10.10.1 10.10.2 All 205 releases
← All changes | includes/page-form-builder/ajax/_src/bfb-ajax.js +6 -19 11.4.2 → 11.9 View file →
@@ -1,4 +1,4 @@
1 1 // ---------------------------------------------------------------------------------------------------------------------
2 2 // == File ../includes/page-form-builder/ajax/_out/bfb-ajax.js - after refactor 2026-02-28 15:14 rolback to this paoint, if something will go wrong.
3 3 // ---------------------------------------------------------------------------------------------------------------------
4 4 (function (w, d, $) {
@@ -349,27 +349,14 @@
349 349 if ( typeof done_cb === 'function' ) {
350 350 try { done_cb( true, resp ); } catch ( _e2 ) {}
351 351 }
352 352
353 - wpbc_bfb__dispatch_event_safe( 'wpbc:bfb:form:ajax_saved', {
354 - loaded_data: resp.data,
355 - form_name : cfg.form_name || 'standard'
356 - } );
357 - if (
358 - resp.data
359 - && resp.data.setup_step_saved
360 - && typeof w.wpbc_setup_wizard_set_current_step_saved === 'function'
361 - ) {
362 - try {
363 - w.wpbc_setup_wizard_set_current_step_saved();
364 - } catch ( _e_setup_set ) {}
365 - } else if ( typeof w.wpbc_setup_wizard_mark_current_step_saved === 'function' ) {
366 - try {
367 - w.wpbc_setup_wizard_mark_current_step_saved();
368 - } catch ( _e_setup ) {}
369 - }
370 -
371 - // Optional: visual feedback.
353 + wpbc_bfb__dispatch_event_safe( 'wpbc:bfb:form:ajax_saved', {
354 + loaded_data: resp.data,
355 + form_name : cfg.form_name || 'standard'
356 + } );
357 +
358 + // Optional: visual feedback.
372 359 wpbc_admin_show_message( 'Form saved', 'success', 1000, false );
373 360 }
374 361 )
375 362 .fail( function ( jqxhr ) {