We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e41326d commit 1dfd531Copy full SHA for 1dfd531
1 file changed
ehr/resources/web/ehr/navMenu.js
@@ -107,11 +107,19 @@ Ext4.define('EHR.NavMenu', {
107
item = this.renderer(tmp.items[j])
108
}
109
else {
110
- //NOTE: this is the default renderer
111
- item = {
112
- //Creates links for the navigation panel
113
- html: '<a href="'+tmp.items[j].url+'">'+tmp.items[j].name+'</a>'
+ if (tmp.items[j].target){
+ item = {
+ //Creates links for the navigation panel to a target
+ html: '<a target="'+tmp.items[j].target+'" href="'+tmp.items[j].url+'">'+tmp.items[j].name+'</a>'
114
+ }
115
+ }else{
116
117
+ //Creates links for the navigation panel
118
+ html: '<a href="'+tmp.items[j].url+'">'+tmp.items[j].name+'</a>'
119
120
121
+ //NOTE: this is the default renderer
122
+
123
124
section.add(item)
125
0 commit comments