From 100e75084060b6e23dc90f66210ec4c48c629931 Mon Sep 17 00:00:00 2001 From: Christian Hofmaier Date: Tue, 13 Oct 2020 18:24:24 +0200 Subject: [locationinfo] add forward link to location module + delete some unused code --- modules-available/locations/templates/locations.html | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'modules-available/locations/templates/locations.html') 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 @@ {{locationname}} {{/show-only}} {{^show-only}} - + {{locationname}} @@ -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'); -- cgit v1.2.3-55-g7522