Fixed issues with sidemenu: target and title

* Fixed sidemenu disabled menu item
* Removed target attribute from sidemenu items when no 'useblank' option
* enabled, because breaks html5 navigation
pull/106/head
Ivan Ivanov 2016-07-02 22:43:20 +03:00
parent 4014e7d12f
commit 446f96cd48
1 changed files with 10 additions and 4 deletions

View File

@ -31,7 +31,7 @@
ba-ui-sref-toggling-submenu>
<li ng-mouseenter="hoverItem($event, item)" ng-repeat="subSubitem in ::subitem.subMenu" ui-sref-active="selected">
<a ng-mouseenter="hoverItem($event, item)" href ng-if="::subSubitem.disabled" class="al-sidebar-list-link">
{{ ::item.title }}
{{ ::subSubitem.title }}
</a>
<a ng-mouseenter="hoverItem($event, item)"
ui-state="subSubitem.stateRef || ''"
@ -44,8 +44,14 @@
<a ng-mouseenter="hoverItem($event, item)" href ng-if="::(!subitem.subMenu && subitem.disabled)" class="al-sidebar-list-link">
{{ ::subitem.title }}
</a>
<a ng-mouseenter="hoverItem($event, item)" target="{{::(subitem.blank ? '_blank' : '_self')}}"
ng-if="::(!subitem.subMenu && !subitem.disabled)"
<a ng-mouseenter="hoverItem($event, item)"
ng-if="::(!subitem.subMenu && !subitem.disabled && !subitem.blank)"
ui-state="subitem.stateRef || ''"
ng-href="{{::(subitem.fixedHref ? subitem.fixedHref: '')}}">
{{ ::subitem.title}}
</a>
<a ng-mouseenter="hoverItem($event, item)" target="_blank"
ng-if="::(!subitem.subMenu && !subitem.disabled && subitem.blank)"
ui-state="subitem.stateRef || ''"
ng-href="{{::(subitem.fixedHref ? subitem.fixedHref: '')}}">
{{ ::subitem.title}}