Loading public/javascript/app/home/views/HomeView.js +16 −2 Original line number Diff line number Diff line Loading @@ -39,7 +39,6 @@ define([ this.config = { noScroll: true, propsWidget: { omitTitleButtons: true } }; Loading Loading @@ -153,9 +152,18 @@ define([ _showSearchResults: function(searchDefinition) { var obj = { target: searchDefinition.target, queryChannel: searchDefinition.queryChannel }; this._publish(this._widgets.searchResults.getChannel('SET_PROPS'), obj); this._publish(this._widgets.searchFastFilter.getChannel('SET_PROPS'), obj); this._showWidget('searchFastFilter'); this._showWidget('searchResults'); this._reloadInteractive(); this._updateInteractive(); this._publish(this._widgets.searchResults.getChannel('SEARCH_DATA'), searchDefinition); }, Loading @@ -170,9 +178,15 @@ define([ this._updateInteractive(); }, _toggleAdvancedSearch: function() { _toggleAdvancedSearch: function(searchDefinition) { if (!this._advancedSearchShown) { if (this._advancedSearchShown === undefined) { this._publish(this._widgets.searchFilter.getChannel('SET_PROPS'), { target: searchDefinition.target, queryChannel: searchDefinition.queryChannel }); } this._advancedSearchShown = true; this._showWidget('searchFilter'); this._reloadInteractive(); Loading public/javascript/app/home/views/SearchBarWidget.js +6 −2 Original line number Diff line number Diff line Loading @@ -75,7 +75,10 @@ define([ var parentNode = put(this.contentNode, 'div.' + this.className); this._toggleAdvancedNode = put(this.contentNode, 'i.fa.fa-info'); this._toggleAdvancedNode.onclick = lang.hitch(this, this._emitEvt, 'TOGGLE_ADVANCED_SEARCH'); this._toggleAdvancedNode.onclick = lang.hitch(this, this._emitEvt, 'TOGGLE_ADVANCED_SEARCH', { target: this.target, queryChannel: this.queryChannel }); this._publish(this.textSearch.getChannel("SHOW"), { node: parentNode Loading @@ -99,7 +102,8 @@ define([ this._emitEvt('SHOW_SEARCH_RESULTS', { target: this.target, searchText: searchText searchText: searchText, queryChannel: this.queryChannel }); } }); Loading public/javascript/app/home/views/SearchFastFilterWidget.js +4 −4 Original line number Diff line number Diff line Loading @@ -4,7 +4,6 @@ define([ , 'dojo/_base/declare' , 'dojo/_base/lang' , 'put-selector/put' , 'redmic/modules/base/_Filter' , 'redmic/modules/base/_Module' , 'redmic/modules/base/_Show' , 'redmic/modules/base/_Store' Loading @@ -15,14 +14,13 @@ define([ , declare , lang , put , _Filter , _Module , _Show , _Store , FacetsImpl ) { return declare([_Module, _Show, _Filter], { return declare([_Module, _Show], { // summary: // Widget contenedor de resultados de búsqueda sobre actividades Loading @@ -37,7 +35,7 @@ define([ lang.mixin(this, this.config, args); }, _initialize: function() { _createModules: function() { this.facetsSearchConfig = this._merge([{ parentChannel: this.getChannel(), Loading Loading @@ -68,6 +66,8 @@ define([ return; } this._createModules(); var facetsSearchNode = put(this.domNode, 'div.' + this.className); this._publish(this.facetsSearch.getChannel("SHOW"), { Loading public/javascript/app/home/views/SearchFilterWidget.js +4 −4 Original line number Diff line number Diff line Loading @@ -4,7 +4,6 @@ define([ , 'dojo/_base/declare' , 'dojo/_base/lang' , 'put-selector/put' , 'redmic/modules/base/_Filter' , 'redmic/modules/base/_Module' , 'redmic/modules/base/_Show' , 'redmic/modules/base/_Store' Loading @@ -15,14 +14,13 @@ define([ , declare , lang , put , _Filter , _Module , _Show , _Store , CompositeImpl ) { return declare([_Module, _Show, _Filter], { return declare([_Module, _Show], { // summary: // Widget contenedor de resultados de búsqueda sobre actividades Loading @@ -37,7 +35,7 @@ define([ lang.mixin(this, this.config, args); }, _initialize: function() { _createModules: function() { this.compositeSearchConfig = this._merge([{ parentChannel: this.getChannel(), Loading @@ -53,6 +51,8 @@ define([ return; } this._createModules(); var compositeSearchNode = put(this.domNode, 'div.' + this.className); this._publish(this.compositeSearch.getChannel("SHOW"), { Loading public/javascript/app/home/views/SearchResultsWidget.js +9 −13 Original line number Diff line number Diff line Loading @@ -4,9 +4,7 @@ define([ , 'dojo/_base/declare' , 'dojo/_base/lang' , 'put-selector/put' , 'redmic/modules/base/_Filter' , 'redmic/modules/base/_Store' , 'redmic/modules/browser/bars/Pagination' , 'redmic/modules/browser/bars/Total' , 'redmic/modules/browser/_ButtonsInRow' , 'redmic/modules/browser/_Framework' Loading @@ -18,9 +16,7 @@ define([ , declare , lang , put , _Filter , _Store , Pagination , Total , _ButtonsInRow , _Framework Loading @@ -28,7 +24,7 @@ define([ , ActivityList ) { return declare([_DashboardItem, _Store, _Filter], { return declare([_DashboardItem, _Store], { // summary: // Widget contenedor de resultados de búsqueda sobre actividades Loading @@ -47,16 +43,15 @@ define([ lang.mixin(this, this.config, args); }, _initialize: function() { _createModules: function() { this.browserConfig = this._merge([{ parentChannel: this.getChannel(), target: this.target, queryChannel: this.queryChannel, template: ActivityList, bars: [{ instance: Total },{ instance: Pagination }], rowConfig: { buttonsConfig: { Loading Loading @@ -88,6 +83,7 @@ define([ _afterShow: function() { if (!this._getPreviouslyShown()) { this._createModules(); // TODO retocar contenedores de por encima, igual no extender de la base de ahora put(this.containerNode, '.flex'); this._browserNode = put(this.containerNode, 'div.' + this.className); Loading @@ -106,7 +102,7 @@ define([ text: req.searchText } }, requesterId: this.getOwnChannel() //requesterId: this.getOwnChannel() }); }, Loading Loading
public/javascript/app/home/views/HomeView.js +16 −2 Original line number Diff line number Diff line Loading @@ -39,7 +39,6 @@ define([ this.config = { noScroll: true, propsWidget: { omitTitleButtons: true } }; Loading Loading @@ -153,9 +152,18 @@ define([ _showSearchResults: function(searchDefinition) { var obj = { target: searchDefinition.target, queryChannel: searchDefinition.queryChannel }; this._publish(this._widgets.searchResults.getChannel('SET_PROPS'), obj); this._publish(this._widgets.searchFastFilter.getChannel('SET_PROPS'), obj); this._showWidget('searchFastFilter'); this._showWidget('searchResults'); this._reloadInteractive(); this._updateInteractive(); this._publish(this._widgets.searchResults.getChannel('SEARCH_DATA'), searchDefinition); }, Loading @@ -170,9 +178,15 @@ define([ this._updateInteractive(); }, _toggleAdvancedSearch: function() { _toggleAdvancedSearch: function(searchDefinition) { if (!this._advancedSearchShown) { if (this._advancedSearchShown === undefined) { this._publish(this._widgets.searchFilter.getChannel('SET_PROPS'), { target: searchDefinition.target, queryChannel: searchDefinition.queryChannel }); } this._advancedSearchShown = true; this._showWidget('searchFilter'); this._reloadInteractive(); Loading
public/javascript/app/home/views/SearchBarWidget.js +6 −2 Original line number Diff line number Diff line Loading @@ -75,7 +75,10 @@ define([ var parentNode = put(this.contentNode, 'div.' + this.className); this._toggleAdvancedNode = put(this.contentNode, 'i.fa.fa-info'); this._toggleAdvancedNode.onclick = lang.hitch(this, this._emitEvt, 'TOGGLE_ADVANCED_SEARCH'); this._toggleAdvancedNode.onclick = lang.hitch(this, this._emitEvt, 'TOGGLE_ADVANCED_SEARCH', { target: this.target, queryChannel: this.queryChannel }); this._publish(this.textSearch.getChannel("SHOW"), { node: parentNode Loading @@ -99,7 +102,8 @@ define([ this._emitEvt('SHOW_SEARCH_RESULTS', { target: this.target, searchText: searchText searchText: searchText, queryChannel: this.queryChannel }); } }); Loading
public/javascript/app/home/views/SearchFastFilterWidget.js +4 −4 Original line number Diff line number Diff line Loading @@ -4,7 +4,6 @@ define([ , 'dojo/_base/declare' , 'dojo/_base/lang' , 'put-selector/put' , 'redmic/modules/base/_Filter' , 'redmic/modules/base/_Module' , 'redmic/modules/base/_Show' , 'redmic/modules/base/_Store' Loading @@ -15,14 +14,13 @@ define([ , declare , lang , put , _Filter , _Module , _Show , _Store , FacetsImpl ) { return declare([_Module, _Show, _Filter], { return declare([_Module, _Show], { // summary: // Widget contenedor de resultados de búsqueda sobre actividades Loading @@ -37,7 +35,7 @@ define([ lang.mixin(this, this.config, args); }, _initialize: function() { _createModules: function() { this.facetsSearchConfig = this._merge([{ parentChannel: this.getChannel(), Loading Loading @@ -68,6 +66,8 @@ define([ return; } this._createModules(); var facetsSearchNode = put(this.domNode, 'div.' + this.className); this._publish(this.facetsSearch.getChannel("SHOW"), { Loading
public/javascript/app/home/views/SearchFilterWidget.js +4 −4 Original line number Diff line number Diff line Loading @@ -4,7 +4,6 @@ define([ , 'dojo/_base/declare' , 'dojo/_base/lang' , 'put-selector/put' , 'redmic/modules/base/_Filter' , 'redmic/modules/base/_Module' , 'redmic/modules/base/_Show' , 'redmic/modules/base/_Store' Loading @@ -15,14 +14,13 @@ define([ , declare , lang , put , _Filter , _Module , _Show , _Store , CompositeImpl ) { return declare([_Module, _Show, _Filter], { return declare([_Module, _Show], { // summary: // Widget contenedor de resultados de búsqueda sobre actividades Loading @@ -37,7 +35,7 @@ define([ lang.mixin(this, this.config, args); }, _initialize: function() { _createModules: function() { this.compositeSearchConfig = this._merge([{ parentChannel: this.getChannel(), Loading @@ -53,6 +51,8 @@ define([ return; } this._createModules(); var compositeSearchNode = put(this.domNode, 'div.' + this.className); this._publish(this.compositeSearch.getChannel("SHOW"), { Loading
public/javascript/app/home/views/SearchResultsWidget.js +9 −13 Original line number Diff line number Diff line Loading @@ -4,9 +4,7 @@ define([ , 'dojo/_base/declare' , 'dojo/_base/lang' , 'put-selector/put' , 'redmic/modules/base/_Filter' , 'redmic/modules/base/_Store' , 'redmic/modules/browser/bars/Pagination' , 'redmic/modules/browser/bars/Total' , 'redmic/modules/browser/_ButtonsInRow' , 'redmic/modules/browser/_Framework' Loading @@ -18,9 +16,7 @@ define([ , declare , lang , put , _Filter , _Store , Pagination , Total , _ButtonsInRow , _Framework Loading @@ -28,7 +24,7 @@ define([ , ActivityList ) { return declare([_DashboardItem, _Store, _Filter], { return declare([_DashboardItem, _Store], { // summary: // Widget contenedor de resultados de búsqueda sobre actividades Loading @@ -47,16 +43,15 @@ define([ lang.mixin(this, this.config, args); }, _initialize: function() { _createModules: function() { this.browserConfig = this._merge([{ parentChannel: this.getChannel(), target: this.target, queryChannel: this.queryChannel, template: ActivityList, bars: [{ instance: Total },{ instance: Pagination }], rowConfig: { buttonsConfig: { Loading Loading @@ -88,6 +83,7 @@ define([ _afterShow: function() { if (!this._getPreviouslyShown()) { this._createModules(); // TODO retocar contenedores de por encima, igual no extender de la base de ahora put(this.containerNode, '.flex'); this._browserNode = put(this.containerNode, 'div.' + this.className); Loading @@ -106,7 +102,7 @@ define([ text: req.searchText } }, requesterId: this.getOwnChannel() //requesterId: this.getOwnChannel() }); }, Loading