gluon-config-mode-geo-location-with-map: refactor if condition to oneliner
This commit is contained in:
parent
f1dd0c5f71
commit
3066c0c7ad
@ -74,11 +74,7 @@ return function(form, uci)
|
|||||||
window.addEventListener("load", showMap, false);
|
window.addEventListener("load", showMap, false);
|
||||||
var lpm=document.getElementById("locationPickerMap");
|
var lpm=document.getElementById("locationPickerMap");
|
||||||
setInterval(function() {
|
setInterval(function() {
|
||||||
if(false !== findObj("longitude")) {
|
!1 !== findObj("longitude") ? lpm.style.display = "block" : lpm.style.display = "none";
|
||||||
lpm.style.display="block";
|
|
||||||
}else{
|
|
||||||
lpm.style.display="none";
|
|
||||||
}
|
|
||||||
}, 100);
|
}, 100);
|
||||||
};
|
};
|
||||||
document.head.appendChild(openLayerSrc);
|
document.head.appendChild(openLayerSrc);
|
||||||
|
Loading…
Reference in New Issue
Block a user