Adjust layout control and fix navlist
This commit is contained in:
@@ -358,6 +358,7 @@ class WSF_NAVLIST_ITEM_CONTROL extends WSF_BUTTON_CONTROL
|
||||
update: (state) ->
|
||||
super
|
||||
if state.active?
|
||||
@state['active'] = state.active
|
||||
if state.active
|
||||
@$el.addClass("active")
|
||||
else
|
||||
|
||||
@@ -598,6 +598,7 @@ WSF_NAVLIST_ITEM_CONTROL = (function(_super) {
|
||||
WSF_NAVLIST_ITEM_CONTROL.prototype.update = function(state) {
|
||||
WSF_NAVLIST_ITEM_CONTROL.__super__.update.apply(this, arguments);
|
||||
if (state.active != null) {
|
||||
this.state['active'] = state.active;
|
||||
if (state.active) {
|
||||
return this.$el.addClass("active");
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user