| @@ -66,11 +66,14 @@ | ||
| 66 | 66 | } |
| 67 | 67 | } |
| 68 | 68 | |
| 69 | 69 | // ------------------------------------------------------------------------------------------------- |
| 70 | - // Auto redirect to new BFB builder - templates section. | |
| 70 | + // Redirect from the internal wizard to the guided setup target page. | |
| 71 | 71 | // ------------------------------------------------------------------------------------------------- |
| 72 | - if ( ( undefined != response_data[ 'ajx_cleaned_params' ] ) && ( 'auto_open_template' === response_data[ 'ajx_cleaned_params' ][ 'do_action' ] ) ){ | |
| 72 | + if ( | |
| 73 | + ( undefined != response_data[ 'ajx_cleaned_params' ] ) | |
| 74 | + && ( 'redirect_to_setup_step' === response_data[ 'ajx_cleaned_params' ][ 'do_action' ] ) | |
| 75 | + ){ | |
| 73 | 76 | if (undefined != response_data[ 'ajx_data' ][ 'redirect_url' ]){ |
| 74 | 77 | window.location.href = response_data[ 'ajx_data' ][ 'redirect_url' ]; |
| 75 | 78 | return; |
| 76 | 79 | } |
| @@ -140,5 +143,5 @@ | ||
| 140 | 143 | function wpbc_ajx__setup_wizard_page__do_request_clean() { |
| 141 | 144 | // We donot require the 'calendar_force_load' parameter with all html and scripts content at server side. This content generated at server side. |
| 142 | 145 | // It is also can be the reason of blocking request, because of script tags. |
| 143 | 146 | _wpbc_settings.set_param__setup_wizard('calendar_force_load', ''); |
| 144 | -} | |
| 147 | +} | |