Skip to content

Commit

Permalink
Fixed a JS undefined error case, occurring when search field is empty.
Browse files Browse the repository at this point in the history
  • Loading branch information
luccioman committed Nov 29, 2016
1 parent ceb7588 commit 1f4f0ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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");
Expand Down

0 comments on commit 1f4f0ea

Please sign in to comment.