Fixed tabsSidebar
This commit is contained in:
parent
d9b5e428e7
commit
b50698c771
2 changed files with 17 additions and 16 deletions
|
@ -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) ->
|
||||||
|
|
||||||
|
|
|
@ -65,7 +65,7 @@ class ContentSidebarTabsRight extends App.ControllerContent
|
||||||
]
|
]
|
||||||
|
|
||||||
new App.Sidebar(
|
new App.Sidebar(
|
||||||
el: sidebar
|
el: @sidebar
|
||||||
items: items
|
items: items
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue