[#427] Fixed marking of nav buttons as active.

This commit is contained in:
Sol Villar 2015-03-05 03:47:57 -03:00
parent dff3557c8a
commit af84ece6cf

View File

@ -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