Fixed tabsSidebar in create screen.

This commit is contained in:
Martin Edenhofer 2014-09-16 08:14:28 +02:00
parent c96a0cc57d
commit c71c76ba3c
3 changed files with 7 additions and 7 deletions

View file

@ -439,7 +439,6 @@ class App.Sidebar extends App.Controller
item.callback( @el.find( '.sidebar-content[data-content=' + item.name + ']' ) )
toggleSidebar: ->
console.log('toggleSidebar', @el.parent() )
@el.parent().find('.tabsSidebarSpace').toggleClass('is-closed')
@el.parent().find('.tabsSidebar').toggleClass('is-closed')

View file

@ -1,4 +1,7 @@
class App.TicketCreate extends App.Controller
elements:
'.tabsSidebar' : 'sidebar'
events:
'click .type-tabs .tab': 'changeFormType'
'click .customer_new': 'userNew'
@ -280,7 +283,7 @@ class App.TicketCreate extends App.Controller
)
new Sidebar(
el: @el
el: @sidebar
params: @formDefault
)
@ -294,7 +297,7 @@ class App.TicketCreate extends App.Controller
params = App.ControllerForm.params( $(e.target).closest('form') )
new Sidebar(
el: @el
el: @sidebar
params: params
)
@ -469,7 +472,7 @@ class Sidebar extends App.Controller
}
new App.Sidebar(
el: @el.find('.tabsSidebar')
el: @el
items: items
)

View file

@ -28,9 +28,7 @@
</div>
</div>
<div class="tabsSidebar vertical">
</div>
<div class="tabsSidebar vertical"></div>
</div>
<form class="bottom-form form-inline horizontal" role="form">