bigbluebutton-Github/client/bbb-html5-client/public/js/views/session_navbar_hidden.coffee

27 lines
639 B
CoffeeScript
Raw Normal View History

define [
'jquery',
'underscore',
'backbone',
'globals',
'text!templates/session_navbar_hidden.html'
], ($, _, Backbone, globals, sessionNavbarHiddenTemplate) ->
# The navbar in a session
# The contents are rendered by SessionView, this class is Used to
# manage the events in the navbar.
SessionNavbarView = Backbone.View.extend
events:
"click #show-menu-btn": "_showMenu"
initialize: ->
@$parentEl = null
render: ->
compiledTemplate = _.template(sessionNavbarHiddenTemplate)
@$el.html compiledTemplate
_showMenu: ->
@$parentEl.addClass('navbar-on')
SessionNavbarView