From cb5a73ebec745c1f6cea7592a475d4f749773c4b Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Mon, 1 Jul 2013 23:23:59 +0100 Subject: [PATCH] Rename '#ranking' to '#mkwsRanking' --- experiments/spclient/html-structure.txt | 4 ++-- experiments/spclient/mkws.js | 10 +++++----- experiments/spclient/mkwsStyle.css | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/experiments/spclient/html-structure.txt b/experiments/spclient/html-structure.txt index 0acca43..9f85610 100644 --- a/experiments/spclient/html-structure.txt +++ b/experiments/spclient/html-structure.txt @@ -11,7 +11,7 @@ identifier and .CLASS indicates an instance of a class. #mkwsSearch form - input#query type=text + input#mkwsQuery type=text input#mkwsButton type=submit #mkwsBlanket @@ -28,7 +28,7 @@ identifier and .CLASS indicates an instance of a class. div.termtitle ( a span br )* td - div#ranking + div#mkwsRanking form#select select#sort select#perpage diff --git a/experiments/spclient/mkws.js b/experiments/spclient/mkws.js index a6dbbdd..b7b6d55 100644 --- a/experiments/spclient/mkws.js +++ b/experiments/spclient/mkws.js @@ -242,7 +242,7 @@ function my_onbytarget(data) { function domReady () { document.search.onsubmit = onFormSubmitEventHandler; - document.search.query.value = ''; + document.search.mkwsQuery.value = ''; document.select.sort.onchange = onSelectDdChange; document.select.perpage.onchange = onSelectDdChange; } @@ -275,7 +275,7 @@ function resetPage() function triggerSearch () { - my_paz.search(document.search.query.value, recPerPage, curSort, curFilter); + my_paz.search(document.search.mkwsQuery.value, recPerPage, curSort, curFilter); } function loadSelect () @@ -532,11 +532,11 @@ function mkws_html_all(config) { mkws_html_lang(mkws_config); // For some reason, doing this programmatically results in - // document.search.query being undefined, hence the raw HTML. + // document.search.mkwsQuery being undefined, hence the raw HTML. debug("HTML search form"); $("#mkwsSearch").html('\
\ - \ + \ \
'); @@ -548,7 +548,7 @@ function mkws_html_all(config) {
\ \ \ -
\ +
\
\ ' + M('Sort by') + ' ' + mkws_html_sort(config) + '\ ' + M('and show') + ' ' + mkws_html_perpage(config) + '\ diff --git a/experiments/spclient/mkwsStyle.css b/experiments/spclient/mkwsStyle.css index f5209f1..2912ce2 100644 --- a/experiments/spclient/mkwsStyle.css +++ b/experiments/spclient/mkwsStyle.css @@ -81,7 +81,7 @@ cursor: pointer; } -#mkwsSearch input#query { +#mkwsSearch input#mkwsQuery { border: 2px inset #e0f0ff; padding: 3px; font-size: 12px; -- 1.7.10.4