The URI of TUHH Docker Registry changed from "docker.rz.tu-harburg.de:5000" to "docker.rz.tu-harburg.de". Please update your gitlab-ci.yml files if you use images from this registry.

Commit 429a0296 authored by Tobias Zeumer's avatar Tobias Zeumer

Add url parameters for all display options (new: showPOI, showRoomId, showSubjects, showStaffview)

parent 61aacee0
......@@ -378,7 +378,7 @@
<input type="checkbox" id="smQ">
<ul class="sub-menu">
<li><a href="https://collaborating.tuhh.de/tobias.zeumer/tub-floorplan" lang="de" data-lang-token="tokenized_example">Über</a></li>
<li><a href="index.php?level=EG&mapDetails=5&signature=ti:tie-123">Url params</a></li>
<li><a href="index.php?lang=de&level=EG&mapDetails=5&showPOI=1&showRoomId=1&showSubjects=1&showStaffview=1&signature=ti:tie-123">Url params</a></li>
</ul>
</li>
......
......@@ -629,7 +629,7 @@ function toggleDetail(max_lvl) {
# SEARCH AND HIGHLIGHT (Helpers)
############################################################################# */
/**
* Select level, search or set details per URL paramaters
* Select level, search or set details per URL parameters
* @todo: Remove setTimeout
*/
function process_url_params() {
......@@ -668,6 +668,35 @@ function process_url_params() {
// Already implicit level select by other parameter?
if (implicitLvlSelect == false) toggleLevel(level);
// Hide (0) or show (1) POIs ; Dirty timeout workaround for event queuing
if (urlParam.showPOI == 0 || urlParam.showPOI == 1) {
setTimeout(function() {
if ($('#tgl_poi').prop( "checked") != urlParam.showPOI) $('#tgl_poi').click();
}, 0);
}
// Hide (0) or show (1) Room Numbers ; Dirty timeout workaround for event queuing
if (urlParam.showRoomId == 0 || urlParam.showRoomId == 1) {
setTimeout(function() {
if ($('#tgl_roomid').prop( "checked") != urlParam.showRoomId) $('#tgl_roomid').click();
}, 0);
}
// Hide (0) or show (1) Subjects ; Dirty timeout workaround for event queuing
if (urlParam.showSubjects == 0 || urlParam.showSubjects == 1) {
setTimeout(function() {
if ($('#tgl_lbl').prop( "checked") != urlParam.showSubjects) $('#tgl_lbl').click();
}, 0);
}
// Hide (0) or show (1) Staff View ; Dirty timeout workaround for event queuing
if (urlParam.showStaffview == 0 || urlParam.showStaffview == 1) {
setTimeout(function() {
if ($('#tgl_staffview').prop( "checked") != urlParam.showStaffview) $('#tgl_staffview').click();
}, 0);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment