From e15240ac672091b677a5df853ef39dbbbed95d35 Mon Sep 17 00:00:00 2001 From: Jason Skomorowski Date: Fri, 16 Jan 2015 12:18:56 -0500 Subject: [PATCH] Add 'searchtriggered' queue, remove 'navi' queue. --- src/mkws-team.js | 2 +- src/mkws-widget-main.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mkws-team.js b/src/mkws-team.js index e4645b2..3d40f23 100644 --- a/src/mkws-team.js +++ b/src/mkws-team.js @@ -306,7 +306,6 @@ mkws.makeTeam = function($, teamName) { function triggerSearch(query, sortOrder, maxrecs, perpage, limit, targets, torusquery) { resetPage(); - queue("navi").publish(); // Continue to use previous query/sort-order unless new ones are specified if (query) m_query = query; @@ -334,6 +333,7 @@ mkws.makeTeam = function($, teamName) { "pp2filter = " + pp2filter + ", params = " + $.toJSON(params)); m_paz.search(m_query, m_perpage, m_sortOrder, pp2filter, undefined, params); + queue("searchtriggered").publish(); } // fetch record details to be retrieved from the record queue diff --git a/src/mkws-widget-main.js b/src/mkws-widget-main.js index 463172d..4a1d23b 100644 --- a/src/mkws-widget-main.js +++ b/src/mkws-widget-main.js @@ -141,7 +141,7 @@ mkws.registerWidgetType('navi', function() { var that = this; var teamName = this.team.name(); - this.team.queue("navi").subscribe(function() { + this.team.queue("searchtriggered").subscribe(function() { var filters = that.team.filters(); var output = {filters:[]}; -- 1.7.10.4