From 5410417eabfac6b02db4183554d6b1e8d33d8546 Mon Sep 17 00:00:00 2001 From: "F. Daniel Nicolalde" Date: Fri, 28 Mar 2025 17:43:02 -0500 Subject: [PATCH] Adding option to the navMenu to add a target when generating links in ExtJS. --- ehr/resources/web/ehr/navMenu.js | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/ehr/resources/web/ehr/navMenu.js b/ehr/resources/web/ehr/navMenu.js index 74bbd49af..8f4d6048c 100644 --- a/ehr/resources/web/ehr/navMenu.js +++ b/ehr/resources/web/ehr/navMenu.js @@ -107,11 +107,19 @@ Ext4.define('EHR.NavMenu', { item = this.renderer(tmp.items[j]) } else { - //NOTE: this is the default renderer - item = { - //Creates links for the navigation panel - html: ''+tmp.items[j].name+'' + if (tmp.items[j].target){ + item = { + //Creates links for the navigation panel to a target + html: ''+tmp.items[j].name+'' + } + }else{ + item = { + //Creates links for the navigation panel + html: ''+tmp.items[j].name+'' + } } + //NOTE: this is the default renderer + } section.add(item) }