From: Mike Taylor Date: Tue, 4 Mar 2014 13:01:09 +0000 (+0000) Subject: More reordering. X-Git-Tag: 1.0.0~1343 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=67e6ff2dcfc17cb892c17a1ed35ecf3b64028844;p=mkws-moved-to-github.git More reordering. --- diff --git a/tools/htdocs/mkws.js b/tools/htdocs/mkws.js index 0ab9873..93a40a0 100644 --- a/tools/htdocs/mkws.js +++ b/tools/htdocs/mkws.js @@ -510,6 +510,21 @@ function team($, teamName) { } + function loadSelect () + { + var node = findnode('.mkwsSort'); + if (node.length && node.val() != m_sort) { + debug("changing m_sort from " + m_sort + " to " + node.val()); + m_sort = node.val(); + } + node = findnode('.mkwsPerpage'); + if (node.length && node.val() != m_perpage) { + debug("changing m_perpage from " + m_perpage + " to " + node.val()); + m_perpage = node.val(); + } + } + + function triggerSearch (query, sort, targets) { var pp2filter = ""; @@ -557,21 +572,6 @@ function team($, teamName) { } - function loadSelect () - { - var node = findnode('.mkwsSort'); - if (node.length && node.val() != m_sort) { - debug("changing m_sort from " + m_sort + " to " + node.val()); - m_sort = node.val(); - } - node = findnode('.mkwsPerpage'); - if (node.length && node.val() != m_perpage) { - debug("changing m_perpage from " + m_perpage + " to " + node.val()); - m_perpage = node.val(); - } - } - - // limit by target functions that.limitTarget = function (id, name) {