Option to default open Location Map on Device View (#11167)

* Option to default open Location Map on Device View

* String set fixes

* adding lanugage files
This commit is contained in:
SourceDoctor
2020-02-22 00:09:51 +01:00
committed by GitHub
parent 5b6a1f7889
commit 40cac40aec
4 changed files with 18 additions and 3 deletions

View File

@ -177,8 +177,11 @@ if ($device['location_id']) {
}).on("hidden.bs.collapse", function () {
$("#toggle-map-button").find(".fa").removeClass("fa-map-o").addClass("fa-map");
$("#toggle-map-button span").text("View")
});
</script>
});';
if (Config::get('device_location_map_open')) {
echo '$("#toggle-map").collapse("show");';
}
echo '</script>
';
}
?>