Skip to content

Commit

Permalink
[jan] Fix dynamically updating menu entries with a _target (Bug #14740).
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Jan 22, 2018
1 parent 84e8251 commit 90faea7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
identifier: LGPL-2
uri: http://www.horde.org/licenses/lgpl
notes: |
[jan] Fix dynamically updating menu entries with a _target (Bug #14740).
[jan] Check for both the memcache and memcached extensions in test script (Bug #14691).
5.2.17:
api: 5.2.0
Expand Down
3 changes: 3 additions & 0 deletions js/topbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ var HordeTopbar = {
active = nodes[root_node].active ? '-active' : '',
container = new Element('DIV', { className: nodes[root_node]['class'] });
elm = new Element('A', { className: 'horde-mainnavi' + active, href: nodes[root_node].url ? nodes[root_node].url : '#' });
if (nodes[root_node].target) {
elm.writeAttribute('target', nodes[root_node].target);
}
if (nodes[root_node].onclick) {
elm.writeAttribute('onclick', nodes[root_node].onclick);
}
Expand Down

0 comments on commit 90faea7

Please sign in to comment.