summaryrefslogtreecommitdiff
path: root/htroot/yacysearchtrailer.html
diff options
context:
space:
mode:
authorluccioman <luccioman@users.noreply.github.com>2016-11-29 02:11:44 +0100
committerluccioman <luccioman@users.noreply.github.com>2016-11-29 02:11:44 +0100
commit1f4f0eacc2638f1050b096f04468e3edfce2d1e6 (patch)
tree51b0c65a0316fa2291cfcffb57d08614a34baf89 /htroot/yacysearchtrailer.html
parentceb7588880778a6a8453e08a722abbeeb4e6c55a (diff)
Fixed a JS undefined error case, occurring when search field is empty.
Diffstat (limited to 'htroot/yacysearchtrailer.html')
-rw-r--r--htroot/yacysearchtrailer.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/htroot/yacysearchtrailer.html b/htroot/yacysearchtrailer.html
index 5511c8de8..6fae522aa 100644
--- a/htroot/yacysearchtrailer.html
+++ b/htroot/yacysearchtrailer.html
@@ -1,5 +1,5 @@
<script>
- if (document.getElementById("progressbar").getAttribute('class') != "progress-bar progress-bar-success") {
+ if (document.getElementById("progressbar") != null && document.getElementById("progressbar").getAttribute('class') != "progress-bar progress-bar-success") {
document.getElementById("progressbar").setAttribute('style',"width:100%");
document.getElementById("progressbar").setAttribute('style',"transition:transform 0s;-webkit-transition:-webkit-transform 0s;");
document.getElementById("progressbar").setAttribute('class',"progress-bar progress-bar-success");