X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=blobdiff_plain;f=experiments%2Fspclient%2Fmkws.js;h=b7b6d5530fa5eed62893263cc5c6ecd46311fb61;hp=a6dbbdd1092cff6bea9c9a687225d4a321498ad8;hb=cb5a73ebec745c1f6cea7592a475d4f749773c4b;hpb=cdec51fddc3d0ad7a0f1136ef6799dbd217befa0 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) + '\