Commit 46865d59 authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Corrige sintaxis, revisa barra de búsqueda

Deja de ocultar elementos de búsqueda al limpiar texto.
Agrega parámetros de búsqueda para sugerencias.
parent 056f4a5e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -57,7 +57,7 @@ define([
					type: SearchFilterWidget,
					hidden: true,
					props: {
						windowTitle: 'advancedFilters',
						windowTitle: 'advancedFilters'
					}
				},
				searchFastFilter: {
+7 −4
Original line number Diff line number Diff line
@@ -35,7 +35,7 @@ define([
					'TOGGLE_ADVANCED_SEARCH': 'toggleAdvancedSearch'
				},
				target: redmicConfig.services.activity,
				class: 'searchBarPanel'
				'class': 'searchBarPanel'
			};

			lang.mixin(this, this.config, args);
@@ -46,7 +46,10 @@ define([
			this.textSearchConfig = this._merge([{
				parentChannel: this.getChannel(),
				target: this.target,
				queryChannel: this.queryChannel
				queryChannel: this.queryChannel,
				highlightField: ['name'],
				suggestFields: ['name', 'code'],
				searchFields: ['name^3', 'code^3']
			}, this.textSearchConfig || {}]);

			this.textSearch = new TextImpl(this.textSearchConfig);
@@ -99,12 +102,12 @@ define([
				return;
			}

			if (!filterParams.text) {
			/*if (!filterParams.text) {
				this._emitEvt('HIDE_SEARCH_RESULTS', {
					target: this.target
				});
				return;
			}
			}*/

			var searchText = filterParams.text.text;

+1 −1
Original line number Diff line number Diff line
@@ -20,7 +20,7 @@ define([

			this.config = {
				ownChannel: 'searchFastFilterWidget',
				class: 'facets'
				'class': 'facets'
			};

			lang.mixin(this, this.config, args);
+1 −1
Original line number Diff line number Diff line
@@ -20,7 +20,7 @@ define([

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

			lang.mixin(this, this.config, args);
+1 −1
Original line number Diff line number Diff line
@@ -34,7 +34,7 @@ define([
					'CLEAR_DATA': 'clearData'
				},
				target: redmicConfig.services.activity,
				class: 'listZone'
				'class': 'listZone'
			};

			lang.mixin(this, this.config, args);