From 0a8cbbb29c578886c4c3a5e6b13a92db7218b808 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Wed, 18 Sep 2019 15:05:36 -0400 Subject: [PATCH] Update redirect after new account. When creating a new billing account goto the create invoice screen. --- views/admin/billing/editAccountAjax.html | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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; -- 2.17.1