From 9d30056b825036d1ff7c6ad324a9218e642b2010 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Fri, 21 Mar 2014 12:47:35 +0000 Subject: [PATCH] Every single invocation of triggerSearch was preceded by invocations of redrawNavi and resetPage. I removed those invocations and now triggerSearch itself starts by invoking them. --- tools/htdocs/mkws.js | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/tools/htdocs/mkws.js b/tools/htdocs/mkws.js index 79c2f41..0766f51 100644 --- a/tools/htdocs/mkws.js +++ b/tools/htdocs/mkws.js @@ -550,8 +550,6 @@ function team($, teamName) { } m_filters = [] - redrawNavi(); - resetPage(); triggerSearch(query, sortOrder, targets); switchView('records'); // In case it's configured to start off as hidden m_submitted = true; @@ -593,6 +591,9 @@ function team($, teamName) { function triggerSearch (query, sortOrder, targets) { + redrawNavi(); + resetPage(); + var pp2filter = ""; var pp2limit = ""; @@ -643,8 +644,6 @@ function team($, teamName) { { debug("limitTarget(id=" + id + ", name=" + name + ")"); m_filters.push({ id: id, name: name }); - redrawNavi(); - resetPage(); triggerSearch(); return false; } @@ -655,8 +654,6 @@ function team($, teamName) { { debug("limitQuery(field=" + field + ", value=" + value + ")"); m_filters.push({ field: field, value: value }); - redrawNavi(); - resetPage(); triggerSearch(); return false; } @@ -677,8 +674,6 @@ function team($, teamName) { } m_filters = newFilters; - redrawNavi(); - resetPage(); triggerSearch(); return false; } @@ -701,8 +696,6 @@ function team($, teamName) { } m_filters = newFilters; - redrawNavi(); - resetPage(); triggerSearch(); return false; } -- 1.7.10.4