From: Steve Sutton Date: Wed, 18 Sep 2019 19:05:36 +0000 (-0400) Subject: Update redirect after new account. X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=0a8cbbb29c578886c4c3a5e6b13a92db7218b808;p=WP-Plugins%2Fglm-member-db-billing.git Update redirect after new account. When creating a new billing account goto the create invoice screen. --- diff --git a/views/admin/billing/editAccountAjax.html b/views/admin/billing/editAccountAjax.html index 59331f2..7fca576 100644 --- a/views/admin/billing/editAccountAjax.html +++ b/views/admin/billing/editAccountAjax.html @@ -457,10 +457,9 @@ // kill this abide form $('#billingInfoForm').foundation('_destroy'); if ( haveAccount === false ) { - // reload the page - var billingAccountPageUrl = '{$adminUrl}?page=glm-members-admin-menu-billing&glm_action=accounts'; + // If new account goto the Create Invoice Page. + var billingAccountPageUrl = '{$adminUrl}?page=glm-members-admin-menu-billing&glm_action=invoices&option=add'; window.location.href = billingAccountPageUrl; - //console.log('billingAccountPageUrl: ', billingAccountPageUrl); } } else { return false;