[#427] Fixed marking of nav buttons as active.
This commit is contained in:
parent
dff3557c8a
commit
af84ece6cf
@ -301,8 +301,8 @@ my.MultiView = Backbone.View.extend({
|
||||
},
|
||||
|
||||
updateNav: function(pageName) {
|
||||
this.$el.find('.navigation a').removeClass('active');
|
||||
var $el = this.$el.find('.navigation a[data-view="' + pageName + '"]');
|
||||
this.$el.find('.navigation button').removeClass('active');
|
||||
var $el = this.$el.find('.navigation button[data-view="' + pageName + '"]');
|
||||
$el.addClass('active');
|
||||
|
||||
// add/remove sidebars and hide inactive views
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user