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