side menu partial does not require showItem defined

This commit is contained in:
Maikel Linke
2015-02-19 10:17:58 +11:00
parent 08afcac1e5
commit 346a4e71d0
2 changed files with 1 additions and 4 deletions

View File

@@ -12,6 +12,3 @@ angular.module("admin.enterprise_groups")
]
$scope.select(0)
$scope.showItem = (item) ->
true

View File

@@ -2,7 +2,7 @@
%a.menu_item{ href: "", id: "{{ item.name.toLowerCase().replace(' ', '_') }}",
ng: { repeat: '(index,item) in menu.items | filter:{visible:true}',
click: 'select(index)',
show: 'showItem(item)',
show: 'showItem(item) !== false',
class: '{ selected: item.selected}',
'class-odd' => "'odd'",
'class-even' => "'even'" } }