From: Mike Taylor Date: Mon, 1 Jul 2013 22:40:54 +0000 (+0100) Subject: Rename '#sort' and '#perpage' to '#mkwsSort' and '3mkwsPerpage' X-Git-Tag: 0.9.1~373 X-Git-Url: http://lists.indexdata.com/cgi-bin?a=commitdiff_plain;h=85fb8252e95638532f104239f33723345bcc1bed;p=mkws-moved-to-github.git Rename '#sort' and '#perpage' to '#mkwsSort' and '3mkwsPerpage' --- diff --git a/experiments/spclient/html-structure.txt b/experiments/spclient/html-structure.txt index e9e06d8..f6719a0 100644 --- a/experiments/spclient/html-structure.txt +++ b/experiments/spclient/html-structure.txt @@ -30,8 +30,8 @@ identifier and .CLASS indicates an instance of a class. td div#mkwsRanking form#mkwsSelect - select#sort - select#perpage + select#mkwsSort + select#mkwsPerpage #mkwsPager #mkwsNavi #mkwsResults diff --git a/experiments/spclient/mkws.js b/experiments/spclient/mkws.js index 477da10..1130d82 100644 --- a/experiments/spclient/mkws.js +++ b/experiments/spclient/mkws.js @@ -243,8 +243,8 @@ function domReady () { document.search.onsubmit = onFormSubmitEventHandler; document.search.mkwsQuery.value = ''; - document.mkwsSelect.sort.onchange = onSelectDdChange; - document.mkwsSelect.perpage.onchange = onSelectDdChange; + document.mkwsSelect.mkwsSort.onchange = onSelectDdChange; + document.mkwsSelect.mkwsPerpage.onchange = onSelectDdChange; } // when search button pressed @@ -280,8 +280,8 @@ function triggerSearch () function loadSelect () { - curSort = document.mkwsSelect.sort.value; - recPerPage = document.mkwsSelect.perpage.value; + curSort = document.mkwsSelect.mkwsSort.value; + recPerPage = document.mkwsSelect.mkwsPerpage.value; } // limit the query after clicking the facet @@ -634,7 +634,7 @@ function mkws_html_switch(config) { function mkws_html_sort(config) { debug("HTML sort"); - var sort_html = ''; for(var i = 0; i < config.sort.length; i++) { var key = config.sort[i][0]; @@ -653,7 +653,7 @@ function mkws_html_sort(config) { function mkws_html_perpage(config) { debug("HTML perpage"); - var perpage_html = ''; for(var i = 0; i < config.perpage.length; i++) { var key = config.perpage[i];