diff options
Diffstat (limited to 'modules-available/locations')
-rw-r--r-- | modules-available/locations/templates/locations.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules-available/locations/templates/locations.html b/modules-available/locations/templates/locations.html index 06365cb6..c2dc610e 100644 --- a/modules-available/locations/templates/locations.html +++ b/modules-available/locations/templates/locations.html @@ -134,7 +134,7 @@ function slxOpenLocation(e, lid) { if (existing.is(slxLastLocation)) { slxLastLocation = false; } else { - existing.show(); + existing.show()[0].scrollIntoView(); $(e).closest('tr').addClass('active slx-bold'); slxLastLocation = existing; } @@ -146,6 +146,7 @@ function slxOpenLocation(e, lid) { $(e).closest('tr').addClass('active slx-bold').after(tr); td.load('?do=Locations&action=showlocation&locationid=' + lid, function() { slxAttachCidr(); + $('#location-details-' + lid)[0].scrollIntoView(); }); slxLastLocation = tr; } |