gluon-config-mode-geo-location-with-map: refactor if condition to oneliner

This commit is contained in:
Jan-Tarek Butt 2018-07-28 10:33:05 +02:00
parent f1dd0c5f71
commit 3066c0c7ad

View File

@ -74,11 +74,7 @@ return function(form, uci)
window.addEventListener("load", showMap, false);
var lpm=document.getElementById("locationPickerMap");
setInterval(function() {
if(false !== findObj("longitude")) {
lpm.style.display="block";
}else{
lpm.style.display="none";
}
!1 !== findObj("longitude") ? lpm.style.display = "block" : lpm.style.display = "none";
}, 100);
};
document.head.appendChild(openLayerSrc);