diff options
author | Christian Hofmaier | 2020-10-13 18:24:24 +0200 |
---|---|---|
committer | Christian Hofmaier | 2020-10-13 18:24:24 +0200 |
commit | 100e75084060b6e23dc90f66210ec4c48c629931 (patch) | |
tree | f8bae8e827301c920c35e4468165b98f50da1e20 /modules-available/locations | |
parent | [locations] install: Make openingtime migration a bit more robust (diff) | |
download | slx-admin-100e75084060b6e23dc90f66210ec4c48c629931.tar.gz slx-admin-100e75084060b6e23dc90f66210ec4c48c629931.tar.xz slx-admin-100e75084060b6e23dc90f66210ec4c48c629931.zip |
[locationinfo] add forward link to location module
+ delete some unused code
Diffstat (limited to 'modules-available/locations')
-rw-r--r-- | modules-available/locations/templates/locations.html | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/modules-available/locations/templates/locations.html b/modules-available/locations/templates/locations.html index 12d401c1..ed049d73 100644 --- a/modules-available/locations/templates/locations.html +++ b/modules-available/locations/templates/locations.html @@ -55,7 +55,7 @@ <span>{{locationname}}</span> {{/show-only}} {{^show-only}} - <a href="#" onclick="slxOpenLocation(this, {{locationid}}); return false"> + <a id={{locationid}} href="#" onclick="slxOpenLocation(this, {{locationid}}); return false"> {{locationname}} <b class="caret"></b> </a> @@ -167,6 +167,14 @@ var slxLastLocation = false; var newRowCounter = 0; +document.addEventListener("DOMContentLoaded", function() { + var id = window.location.hash.substring(1); + if (id !== "") { + var loc_dom = document.getElementById(id); + slxOpenLocation(loc_dom, id); + } +}); + function slxAddLocationRow() { $("#saveLocationRows").show(); var tr = $('#lasttr'); |