Update redirect after new account.
authorSteve Sutton <steve@gaslightmedia.com>
Wed, 18 Sep 2019 19:05:36 +0000 (15:05 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Wed, 18 Sep 2019 19:05:36 +0000 (15:05 -0400)
When creating a new billing account goto the create invoice screen.

views/admin/billing/editAccountAjax.html

index 59331f2..7fca576 100644 (file)
                     // 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;