Fixed tabsSidebar

This commit is contained in:
Martin Edenhofer 2014-09-15 23:35:27 +02:00
parent d9b5e428e7
commit b50698c771
2 changed files with 17 additions and 16 deletions

View file

@ -439,12 +439,13 @@ class App.Sidebar extends App.Controller
item.callback( @el.find( '.sidebar-content[data-content=' + item.name + ']' ) )
toggleSidebar: ->
$('.content.active .tabsSidebarSpace').toggleClass('is-closed')
$('.content.active .tabsSidebar').toggleClass('is-closed')
console.log('toggleSidebar', @el.parent() )
@el.parent().find('.tabsSidebarSpace').toggleClass('is-closed')
@el.parent().find('.tabsSidebar').toggleClass('is-closed')
showSidebar: ->
$('.content.active .tabsSidebarSpace').removeClass('is-closed')
$('.content.active .tabsSidebar').removeClass('is-closed')
@el.parent().find('.tabsSidebarSpace').removeClass('is-closed')
@el.parent().find('.tabsSidebar').removeClass('is-closed')
toggleTab: (e) ->

View file

@ -43,7 +43,7 @@ App.Config.set( 'layout_ref/content_sidebar_right_sidebar_optional', ContentSide
class ContentSidebarTabsRight extends App.ControllerContent
elements:
elements:
'.tabsSidebar' : 'sidebar'
constructor: ->
@ -51,22 +51,22 @@ class ContentSidebarTabsRight extends App.ControllerContent
@render()
items = [
head: 'Ticket Settings'
name: 'ticket'
icon: 'message'
head: 'Ticket Settings'
name: 'ticket'
icon: 'message'
,
head: 'Customer'
name: 'customer'
icon: 'person'
head: 'Customer'
name: 'customer'
icon: 'person'
,
head: 'Organization'
name: 'organization'
icon: 'group'
head: 'Organization'
name: 'organization'
icon: 'group'
]
new App.Sidebar(
el: sidebar
items: items
el: @sidebar
items: items
)
render: ->