mirror of https://gitee.com/bigwinds/arangodb
23 lines
548 B
JavaScript
23 lines
548 B
JavaScript
/*jslint indent: 2, nomen: true, maxlen: 100, sloppy: true, vars: true, white: true, plusplus: true */
|
|
/*global require, exports, Backbone, EJS, $*/
|
|
|
|
var navigationView = Backbone.View.extend({
|
|
el: '.header',
|
|
init: function () {
|
|
},
|
|
|
|
template: new EJS({url: 'js/templates/navigationView.ejs'}),
|
|
|
|
render: function() {
|
|
$(this.el).html(this.template.text);
|
|
return this;
|
|
},
|
|
selectMenuItem: function (menuItem) {
|
|
$('.nav li').removeClass('active');
|
|
if (menuItem) {
|
|
$('.' + menuItem).addClass('active');
|
|
}
|
|
}
|
|
|
|
});
|