From: Mike Taylor Date: Fri, 7 Feb 2014 15:11:15 +0000 (+0000) Subject: Swap order of that.limitTarget() and limitQuery() X-Git-Tag: 1.0.0~1502^2~18 X-Git-Url: http://git.indexdata.com/?a=commitdiff_plain;ds=sidebyside;h=df741d8f2e9fc1e083c674431e44867c3ef975a7;p=mkws-moved-to-github.git Swap order of that.limitTarget() and limitQuery() --- diff --git a/tools/htdocs/mkws.js b/tools/htdocs/mkws.js index c79c1e0..7747094 100644 --- a/tools/htdocs/mkws.js +++ b/tools/htdocs/mkws.js @@ -542,11 +542,11 @@ function team($, teamName) { } - // limit the query after clicking the facet - that.limitQuery = function (field, value) + // limit by target functions + that.limitTarget = function (id, name) { - debug("limitQuery(field=" + field + ", value=" + value + ")"); - m_filters.push({ field: field, value: value }); + debug("limitTarget(id=" + id + ", name=" + name + ")"); + m_filters.push({ id: id, name: name }); redraw_navi(); resetPage(); loadSelect(); @@ -555,11 +555,11 @@ function team($, teamName) { } - // limit by target functions - that.limitTarget = function (id, name) + // limit the query after clicking the facet + that.limitQuery = function (field, value) { - debug("limitTarget(id=" + id + ", name=" + name + ")"); - m_filters.push({ id: id, name: name }); + debug("limitQuery(field=" + field + ", value=" + value + ")"); + m_filters.push({ field: field, value: value }); redraw_navi(); resetPage(); loadSelect();