From 564ad40a29ed6fd13280ffa4c2db9a67ff064796 Mon Sep 17 00:00:00 2001 From: Oliver Geisen <oliver@rehkopf-geisen.de> Date: Mon, 14 Aug 2017 11:37:57 +0200 Subject: [PATCH] Removed progressbar from searchform --- inc/html.php | 17 ----------------- lib/images/loading.gif | Bin 337 -> 0 bytes lib/scripts/script.js | 33 --------------------------------- 3 files changed, 50 deletions(-) delete mode 100644 lib/images/loading.gif diff --git a/inc/html.php b/inc/html.php index 08e46fe24..1a0963afa 100644 --- a/inc/html.php +++ b/inc/html.php @@ -368,15 +368,6 @@ function html_search(){ $intro ); echo $intro; - flush(); - - //show progressbar - print '<div id="dw__loading">'.NL; - print '<script type="text/javascript">/*<![CDATA[*/'.NL; - print 'showLoadBar();'.NL; - print '/*!]]>*/</script>'.NL; - print '</div>'.NL; - flush(); //do quick pagesearch $data = ft_pageLookup($QUERY,true,useHeading('navigation')); @@ -404,7 +395,6 @@ function html_search(){ print '<div class="clearer"></div>'; print '</div>'; } - flush(); //do fulltext search $regex = array(); @@ -425,18 +415,11 @@ function html_search(){ } $num++; } - flush(); } print '</dl>'; }else{ print '<div class="nothing">'.$lang['nothingfound'].'</div>'; } - - //hide progressbar - print '<script type="text/javascript">/*<![CDATA[*/'.NL; - print 'hideLoadBar("dw__loading");'.NL; - print '/*!]]>*/</script>'.NL; - flush(); } /** diff --git a/lib/images/loading.gif b/lib/images/loading.gif deleted file mode 100644 index 35058e20f0fa29fb426d56dc31cfb36fa2af417d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 337 zcmZ?wbhEHboW{Vz@PUEBXx_K~|Nkrg=k{|A33hf2a5d61U}j`sV9)_#29P2KCi9;D zm8akGFP^jIR`=$6dl)aYKJsvj?_9R3Y~4F<^<1CpPja6BYJLCjJtJfL5$E+CK3dby zEDH_<njy@<1cV$wGgw;sIawKWWYGoG(FF|A1+38pT+s#m(FG#W1(MMPa?u6K(FGdO T1-j7$6#ub0`nY?#F<1itOt(ZW diff --git a/lib/scripts/script.js b/lib/scripts/script.js index 5fddb0431..97edef0b7 100644 --- a/lib/scripts/script.js +++ b/lib/scripts/script.js @@ -18,39 +18,6 @@ if (clientPC.indexOf('opera')!=-1) { var is_opera_seven = (window.opera && document.childNodes); } -/** - * Prints a animated gif to show the search is performed - * - * Because we need to modify the DOM here before the document is loaded - * and parsed completely we have to rely on document.write() - * - * @author Andreas Gohr <andi@splitbrain.org> - */ -function showLoadBar(){ - - document.write('<img src="'+DOKU_BASE+'lib/images/loading.gif" '+ - 'width="150" height="12" alt="..." />'); - - /* this does not work reliable in IE - obj = $(id); - - if(obj){ - obj.innerHTML = '<img src="'+DOKU_BASE+'lib/images/loading.gif" '+ - 'width="150" height="12" alt="..." />'; - obj.style.display="block"; - } - */ -} - -/** - * Disables the animated gif to show the search is done - * - * @author Andreas Gohr <andi@splitbrain.org> - */ -function hideLoadBar(id){ - jQuery('#' + id).hide(); -} - /** * Handler to close all open Popups */ -- GitLab