diff options
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 94aace8e..2f4af8af 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'); |