client/lanes/workspace/ScreensMenu.coffee in lanes-0.1.0 vs client/lanes/workspace/ScreensMenu.coffee in lanes-0.1.2
- old
+ new
@@ -1,8 +1,12 @@
class ScreenList extends Lanes.Views.Base
template: "<li><a href='#'><span></span><i></i></a></li>"
+ FILE: FILE
+ mixins:[
+ Lanes.Workspace.WorkspaceView
+ ]
events:
click: 'displayScreen'
displayScreen: ->
@@ -14,10 +18,14 @@
class ScreenGroup extends Lanes.Views.Base
template: -> '<li class="group"><a href="#"><span></span><i></i></a><ul></ul></li>'
+ FILE: FILE
+ mixins:[
+ Lanes.Workspace.WorkspaceView
+ ]
events:
'click .group>a': 'toggleMenu'
initialize: ->
this.screens = @model.screens()
@@ -40,11 +48,15 @@
class Lanes.Workspace.ScreensMenu extends Lanes.Views.Base
- constructor: -> super
- template: 'workspace/screens-menu'
+ templateName: 'screens-menu'
+ mixins:[
+ Lanes.Workspace.WorkspaceView
+ ]
+
+ FILE: FILE
subviews:
navigation:
container: 'ul.navigation'
collection: 'groups'