From d84317e5c55e36efbf9f82aef64b9ae8a5782b99 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Thu, 18 Jun 2020 17:46:00 +0000 Subject: [PATCH] --- wwwroot/js/app.customerSiteEdit.js | 2 +- wwwroot/js/app.ravLicenses.js | 5 +++++ wwwroot/js/app.shell.js | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/wwwroot/js/app.customerSiteEdit.js b/wwwroot/js/app.customerSiteEdit.js index cc27dd5..c2ce1d6 100644 --- a/wwwroot/js/app.customerSiteEdit.js +++ b/wwwroot/js/app.customerSiteEdit.js @@ -164,7 +164,7 @@ app.customerSiteEdit = (function () { if (stateMap.id != "new") { app.nav.contextAddLink("purchases/" + stateMap.id, "Purchases", "basket"); - app.nav.contextAddLink("ravLicenses/" + stateMap.id, "Licenses", "ticket");//from here to new license + app.nav.contextAddLink("ravLicenses/" + stateMap.id +"/"+ stateMap.context.params.cust_id, "Licenses", "ticket");//from here to new license } }; diff --git a/wwwroot/js/app.ravLicenses.js b/wwwroot/js/app.ravLicenses.js index ff24635..56485c4 100644 --- a/wwwroot/js/app.ravLicenses.js +++ b/wwwroot/js/app.ravLicenses.js @@ -78,6 +78,11 @@ app.ravLicenses = (function () { app.nav.contextClear(); ///ravLicense/122 app.nav.contextAddLink("ravLicense/" + stateMap.id, "New", "plus"); + app.nav.contextAddLink( + "customerSiteEdit/" + stateMap.id + "/" + stateMap.context.params.cust_id, + "Site", + "city" + ); }; //PUBLIC METHODS diff --git a/wwwroot/js/app.shell.js b/wwwroot/js/app.shell.js index 63f514b..70ce0bd 100644 --- a/wwwroot/js/app.shell.js +++ b/wwwroot/js/app.shell.js @@ -240,7 +240,7 @@ app.shell = (function () { page('/ops', ops); page('/trials', trials); page('/trialEdit/:id', trialEdit); - page('/ravLicenses/:id', ravLicenses); + page('/ravLicenses/:id/:cust_id', ravLicenses); page('/ravLicense/:id', ravLicense); page('*', notFound); page({