core#1398: Option to open navigation item in new window (if present)
authorMonish Deb <deb.monish@gmail.com>
Fri, 15 Nov 2019 14:18:14 +0000 (19:48 +0530)
committerMonish Deb <deb.monish@gmail.com>
Mon, 25 Nov 2019 12:26:13 +0000 (17:56 +0530)
js/crm.menubar.js

index 152a6e376e185de20a3318e0aee980a8c3aff961..9fa49f63d69a5fc0d23f4bdf21f3c9ea74eec42f 100644 (file)
   }
 
   function attr(el, item) {
-    var ret = [], attr = _.cloneDeep(item.attr || {}), a = ['rel', 'accesskey'];
+    var ret = [], attr = _.cloneDeep(item.attr || {}), a = ['rel', 'accesskey', 'target'];
     if (el === 'a') {
       attr = _.pick(attr, a);
       attr.href = item.url || "#";