Commit 98019892 authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Oculta filtro de búsqueda inicial al cancelarlo

parent 078555c0
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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)
+12 −1
Original line number Diff line number Diff line
@@ -20,7 +20,10 @@ define([

			this.config = {
				ownChannel: 'searchFilterWidget',
				'class': 'composite'
				'class': 'composite',
				actions: {
					CANCELLED: 'cancelled'
				}
			};

			lang.mixin(this, this.config, args);
@@ -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);
+4 −1
Original line number Diff line number Diff line
@@ -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
@@ -204,6 +205,8 @@ define([
		_formCancelled: function() {

			this._resetModel();

			this._publish(this.getChannel('CANCELLED'));
		},

		_afterHide: function() {