From b7421edb6508afaad8fd1facd4b33a009ca0d935 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Mon, 1 Jul 2013 17:47:01 +0100 Subject: [PATCH] Renamed two magic
s: #mkwsTermlist -> #mkwsShiftedTermlists #termlist -> #mkwsTermlists --- experiments/spclient/mkws.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/experiments/spclient/mkws.js b/experiments/spclient/mkws.js index 45c6b28..acc42c8 100644 --- a/experiments/spclient/mkws.js +++ b/experiments/spclient/mkws.js @@ -160,12 +160,12 @@ function my_onstat(data) { function my_onterm(data) { // no facets if (!mkws_config.facets || mkws_config.facets.length == 0) { - $("#termlist").parent().hide(); + $("#mkwsTermlists").parent().hide(); return; } // display if we first got results - $("#termlist").parent().show(); + $("#mkwsTermlists").parent().show(); var acc = []; acc.push('
' + M('Termlists') + '
'); @@ -183,7 +183,7 @@ function my_onterm(data) { } } - var termlist = document.getElementById("termlist"); + var termlist = document.getElementById("mkwsTermlists"); replaceHtml(termlist, acc.join('')); } @@ -545,7 +545,7 @@ function mkws_html_all(config) { \ \ \
\ -
\ +
\
\
\ @@ -573,7 +573,7 @@ function mkws_html_all(config) { domReady(); // on first page, hide the termlist - $(document).ready(function() { $("#termlist").parent().hide(); } ); + $(document).ready(function() { $("#mkwsTermlists").parent().hide(); } ); } /* Responsive web design - change layout on the fly depending on @@ -747,15 +747,15 @@ function mkws_mobile_resize () { $("#" + list[i]).hide(); } - $("#termlist").parent().hide(); - obj = $("#termlist").parent().html(); - $("#mkwsTermlist").html("
" + obj); + $("#mkwsTermlists").parent().hide(); + obj = $("#mkwsTermlists").parent().html(); + $("#mkwsShiftedTermlists").html("
" + obj); } else { for(var i = 0; i < list.length; i++) { $("#" + list[i]).show(); } - $("#termlist").parent().show(); - $("#mkwsTermlist").html(""); + $("#mkwsTermlists").parent().show(); + $("#mkwsShiftedTermlists").html(""); } }; -- 1.7.10.4