| @@ -323,9 +323,9 @@ | ||
| 323 | 323 | primary_color, |
| 324 | 324 | site_logo: selected_site_logo, |
| 325 | 325 | }, |
| 326 | 326 | } ) |
| 327 | - .success( function ( res ) { | |
| 327 | + .done( function ( res ) { | |
| 328 | 328 | if ( res.success && true === res.data.success ) { |
| 329 | 329 | console.log( 'Funnels imported successfully.' ); |
| 330 | 330 | |
| 331 | 331 | document.dispatchEvent( |
| @@ -341,11 +341,11 @@ | ||
| 341 | 341 | } ) |
| 342 | 342 | .fail( function () { |
| 343 | 343 | has_error.detail.is_error = true; |
| 344 | 344 | has_error.detail.errorMsg = |
| 345 | - cartflows_wizard.template_import_errors.api.title; | |
| 345 | + cartflows_wizard.template_import_errors.api_errors.title; | |
| 346 | 346 | has_error.detail.callToAction = |
| 347 | - cartflows_wizard.template_import_errors.api.msg; | |
| 347 | + cartflows_wizard.template_import_errors.api_errors.msg; | |
| 348 | 348 | document.dispatchEvent( has_error ); |
| 349 | 349 | } ); |
| 350 | 350 | }, |
| 351 | 351 | |
| @@ -479,9 +479,9 @@ | ||
| 479 | 479 | security: cartflows_wizard.page_builder_save_option_nonce, |
| 480 | 480 | page_builder: plugin_slug, |
| 481 | 481 | }, |
| 482 | 482 | } ) |
| 483 | - .success( function () { | |
| 483 | + .done( function () { | |
| 484 | 484 | console.log( 'Option Saved Successfully.' ); |
| 485 | 485 | |
| 486 | 486 | document.dispatchEvent( |
| 487 | 487 | new Event( 'wcf-page-builder-plugins-install-success' ) |