Adjust layout control and fix navlist

This commit is contained in:
YNH Webdev
2013-11-08 09:27:56 +01:00
parent 0d79799a5d
commit 0721384b60
4 changed files with 18 additions and 6 deletions

View File

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

View File

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