From dcc97e4df313226636de5160da6082bf1036cfb5 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Mon, 1 Jul 2013 23:26:33 +0100 Subject: [PATCH] Rename '#select' to '#mkwsSelect' --- experiments/spclient/html-structure.txt | 2 +- experiments/spclient/mkws.js | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/experiments/spclient/html-structure.txt b/experiments/spclient/html-structure.txt index 9f85610..e9e06d8 100644 --- a/experiments/spclient/html-structure.txt +++ b/experiments/spclient/html-structure.txt @@ -29,7 +29,7 @@ identifier and .CLASS indicates an instance of a class. ( a span br )* td div#mkwsRanking - form#select + form#mkwsSelect select#sort select#perpage #mkwsPager diff --git a/experiments/spclient/mkws.js b/experiments/spclient/mkws.js index b7b6d55..477da10 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.select.sort.onchange = onSelectDdChange; - document.select.perpage.onchange = onSelectDdChange; + document.mkwsSelect.sort.onchange = onSelectDdChange; + document.mkwsSelect.perpage.onchange = onSelectDdChange; } // when search button pressed @@ -280,8 +280,8 @@ function triggerSearch () function loadSelect () { - curSort = document.select.sort.value; - recPerPage = document.select.perpage.value; + curSort = document.mkwsSelect.sort.value; + recPerPage = document.mkwsSelect.perpage.value; } // limit the query after clicking the facet @@ -549,7 +549,7 @@ function mkws_html_all(config) { \ \
\ -
\ + \ ' + M('Sort by') + ' ' + mkws_html_sort(config) + '\ ' + M('and show') + ' ' + mkws_html_perpage(config) + '\ ' + M('per page') + '.\ -- 1.7.10.4