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 + ']' ) ) item.callback( @el.find( '.sidebar-content[data-content=' + item.name + ']' ) )
toggleSidebar: -> toggleSidebar: ->
$('.content.active .tabsSidebarSpace').toggleClass('is-closed') console.log('toggleSidebar', @el.parent() )
$('.content.active .tabsSidebar').toggleClass('is-closed') @el.parent().find('.tabsSidebarSpace').toggleClass('is-closed')
@el.parent().find('.tabsSidebar').toggleClass('is-closed')
showSidebar: -> showSidebar: ->
$('.content.active .tabsSidebarSpace').removeClass('is-closed') @el.parent().find('.tabsSidebarSpace').removeClass('is-closed')
$('.content.active .tabsSidebar').removeClass('is-closed') @el.parent().find('.tabsSidebar').removeClass('is-closed')
toggleTab: (e) -> toggleTab: (e) ->

View file

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