summaryrefslogtreecommitdiffstats
path: root/modules-available/locations/templates/locations.html
diff options
context:
space:
mode:
Diffstat (limited to 'modules-available/locations/templates/locations.html')
-rw-r--r--modules-available/locations/templates/locations.html10
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');