Improved naming.

This commit is contained in:
Martin Edenhofer 2014-08-26 14:52:25 +02:00
parent a2aa99e9fd
commit 62b07e2f35
2 changed files with 8 additions and 8 deletions

View file

@ -6,7 +6,7 @@ class App.Navigation extends App.Controller
# rerender view
@bind 'ui:rerender', (data) =>
@renderMenu()
@renderPrivate()
@renderPersonal()
# update selected item
@bind 'navupdate', (data) =>
@ -25,7 +25,7 @@ class App.Navigation extends App.Controller
# rebuild recent viewed data
@bind 'update_recent_viewed', (data) =>
@recent_viewed_build(data)
@renderPrivate()
@renderPersonal()
# bell on / bell off
@bind 'bell', (data) =>
@ -61,7 +61,7 @@ class App.Navigation extends App.Controller
active_tab: active_tab
)
renderPrivate: =>
renderPersonal: =>
items = @getItems( navbar: @Config.get( 'NavBarRight' ) )
# get open tabs to repopen on rerender
@ -78,9 +78,9 @@ class App.Navigation extends App.Controller
active_tab[href] = true
)
@el.find('.navbar-items-right .navbar-private').remove()
@el.find('.navbar-items-right .navbar-personal').remove()
@el.find('.navbar-items-right').append App.view('navigation/private')(
@el.find('.navbar-items-right').append App.view('navigation/personal')(
items: items
open_tab: open_tab
active_tab: active_tab
@ -133,8 +133,8 @@ class App.Navigation extends App.Controller
# renderMenu
@renderMenu()
# renderPrivate
@renderPrivate()
# renderPersonal
@renderPersonal()
# set focus to search box
if @searchFocus

View file

@ -1,6 +1,6 @@
<% for item in @items: %>
<% if item.child: %>
<li class="dropdown <% if @open_tab[item.target] : %>open<% end %> navbar-private">
<li class="dropdown <% if @open_tab[item.target] : %>open<% end %> navbar-personal">
<a href="<%= item.target %>" class="dropdown-toggle" data-toggle="dropdown"><%- @T( item.name ) %> <b class="caret"></b></a>
<ul class="dropdown-menu">
<% for item in item.child: %>