From 85fb8252e95638532f104239f33723345bcc1bed Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Mon, 1 Jul 2013 23:40:54 +0100 Subject: [PATCH] Rename '#sort' and '#perpage' to '#mkwsSort' and '3mkwsPerpage' --- experiments/spclient/html-structure.txt | 4 ++-- experiments/spclient/mkws.js | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) 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]; -- 1.7.10.4