Loading public/javascript/app/home/views/HomeView.js +3 −0 Original line number Diff line number Diff line Loading @@ -184,6 +184,9 @@ define([ },{ channel: this._getWidgetInstance('searchBar').getChannel('TOGGLE_ADVANCED_SEARCH'), callback: lang.hitch(this, this._toggleAdvancedSearch) },{ channel: this._getWidgetInstance('searchFilter').getChannel('CANCELLED'), callback: lang.hitch(this, this._toggleAdvancedSearch) },{ channel: this._getWidgetInstance('stats').getChannel('TOTAL_ACTIVITIES'), callback: lang.hitch(this, this._subStatsTotalActivities) Loading public/javascript/app/home/views/SearchFilterWidget.js +12 −1 Original line number Diff line number Diff line Loading @@ -20,7 +20,10 @@ define([ this.config = { ownChannel: 'searchFilterWidget', 'class': 'composite' 'class': 'composite', actions: { CANCELLED: 'cancelled' } }; lang.mixin(this, this.config, args); Loading @@ -41,11 +44,19 @@ define([ return; } this._subscribe(this.compositeSearch.getChannel('CANCELLED'), lang.hitch(this, this._subCompositeSearchCancelled)); this._publish(this.compositeSearch.getChannel('SHOW'), { node: this.domNode }); }, _subCompositeSearchCancelled: function() { this._publish(this.getChannel('CANCELLED')); }, _onTargetPropSet: function(evt) { this._setPropToChildModules(evt.prop, evt.value); Loading public/javascript/redmic/modules/search/CompositeImpl.js +4 −1 Original line number Diff line number Diff line Loading @@ -34,7 +34,8 @@ define([ CHANGE_FILTER_CHANNEL: "changeFilterChannel", REMEMBER_CURRENT_VALUE: "rememberCurrentValue", HAS_CHANGED: "hasChanged", WAS_CHANGED: "wasChanged" WAS_CHANGED: "wasChanged", CANCELLED: 'cancelled' }, template: formTemplate Loading Loading @@ -204,6 +205,8 @@ define([ _formCancelled: function() { this._resetModel(); this._publish(this.getChannel('CANCELLED')); }, _afterHide: function() { Loading Loading
public/javascript/app/home/views/HomeView.js +3 −0 Original line number Diff line number Diff line Loading @@ -184,6 +184,9 @@ define([ },{ channel: this._getWidgetInstance('searchBar').getChannel('TOGGLE_ADVANCED_SEARCH'), callback: lang.hitch(this, this._toggleAdvancedSearch) },{ channel: this._getWidgetInstance('searchFilter').getChannel('CANCELLED'), callback: lang.hitch(this, this._toggleAdvancedSearch) },{ channel: this._getWidgetInstance('stats').getChannel('TOTAL_ACTIVITIES'), callback: lang.hitch(this, this._subStatsTotalActivities) Loading
public/javascript/app/home/views/SearchFilterWidget.js +12 −1 Original line number Diff line number Diff line Loading @@ -20,7 +20,10 @@ define([ this.config = { ownChannel: 'searchFilterWidget', 'class': 'composite' 'class': 'composite', actions: { CANCELLED: 'cancelled' } }; lang.mixin(this, this.config, args); Loading @@ -41,11 +44,19 @@ define([ return; } this._subscribe(this.compositeSearch.getChannel('CANCELLED'), lang.hitch(this, this._subCompositeSearchCancelled)); this._publish(this.compositeSearch.getChannel('SHOW'), { node: this.domNode }); }, _subCompositeSearchCancelled: function() { this._publish(this.getChannel('CANCELLED')); }, _onTargetPropSet: function(evt) { this._setPropToChildModules(evt.prop, evt.value); Loading
public/javascript/redmic/modules/search/CompositeImpl.js +4 −1 Original line number Diff line number Diff line Loading @@ -34,7 +34,8 @@ define([ CHANGE_FILTER_CHANNEL: "changeFilterChannel", REMEMBER_CURRENT_VALUE: "rememberCurrentValue", HAS_CHANGED: "hasChanged", WAS_CHANGED: "wasChanged" WAS_CHANGED: "wasChanged", CANCELLED: 'cancelled' }, template: formTemplate Loading Loading @@ -204,6 +205,8 @@ define([ _formCancelled: function() { this._resetModel(); this._publish(this.getChannel('CANCELLED')); }, _afterHide: function() { Loading