| @@ -65,9 +65,22 @@ | ||
| 65 | 65 | return; |
| 66 | 66 | } |
| 67 | 67 | } |
| 68 | 68 | |
| 69 | + // ------------------------------------------------------------------------------------------------- | |
| 70 | + // Redirect from the internal wizard to the guided setup target page. | |
| 71 | + // ------------------------------------------------------------------------------------------------- | |
| 72 | + if ( | |
| 73 | + ( undefined != response_data[ 'ajx_cleaned_params' ] ) | |
| 74 | + && ( 'redirect_to_setup_step' === response_data[ 'ajx_cleaned_params' ][ 'do_action' ] ) | |
| 75 | + ){ | |
| 76 | + if (undefined != response_data[ 'ajx_data' ][ 'redirect_url' ]){ | |
| 77 | + window.location.href = response_data[ 'ajx_data' ][ 'redirect_url' ]; | |
| 78 | + return; | |
| 79 | + } | |
| 80 | + } | |
| 69 | 81 | |
| 82 | + | |
| 70 | 83 | // -> Progress line at "Left Main Menu" |
| 71 | 84 | wpbc_setup_wizard_page__update_plugin_menu_progress( response_data[ 'ajx_data' ]['plugin_menu__setup_progress'] ); |
| 72 | 85 | |
| 73 | 86 | // ------------------------------------------------------------------------------------------------- |
| @@ -130,5 +143,5 @@ | ||
| 130 | 143 | function wpbc_ajx__setup_wizard_page__do_request_clean() { |
| 131 | 144 | // We donot require the 'calendar_force_load' parameter with all html and scripts content at server side. This content generated at server side. |
| 132 | 145 | // It is also can be the reason of blocking request, because of script tags. |
| 133 | 146 | _wpbc_settings.set_param__setup_wizard('calendar_force_load', ''); |
| 134 | -} | |
| 147 | +} | |