HTML: prevent implicit type conversion

Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Miika Turkia 2014-08-04 18:22:05 +03:00 committed by Dirk Hohndel
parent 477e37d15c
commit 0130f8411b

View file

@ -53,7 +53,7 @@ function load_scripts()
var advanced_shown=false; var advanced_shown=false;
function showdiv(){ function showdiv(){
var search = document.getElementById("advanced_search"); var search = document.getElementById("advanced_search");
if(advanced_shown==false){ if(advanced_shown===false){
search.style.display='block'; search.style.display='block';
advanced_shown=true; advanced_shown=true;
} }
@ -63,7 +63,7 @@ function showdiv(){
} }
} }
function hideAdvanced(){ function hideAdvanced(){
if(advanced_shown==false) return; if(advanced_shown===false) return;
var search = document.getElementById("advanced_search"); var search = document.getElementById("advanced_search");
search.style.display='none'; search.style.display='none';
advanced_shown=false; advanced_shown=false;