hash links

This commit is contained in:
Frank Schubert
2021-07-13 19:31:22 +02:00
parent 5c99e8008e
commit 30e29eb8c2
4 changed files with 677 additions and 5 deletions
+3 -2
View File
@@ -250,8 +250,9 @@
toggleNetwork(network);
}
match = hash.match(/view=([^&]+)/);
if(match && match[1] == "roles" && network) {
$('a[href="#net-detail-' + network + '-roles"]').tab('show');
if(match && match[1] && network) {
view = match[1];
$('a[href="#net-detail-' + network + '-' + view + '"]').tab('show');
}
+2 -2
View File
@@ -56,14 +56,14 @@
<div class="form-group row">
<label class="col-lg-2 col-form-label" for="gps_lat">GPS Breite</label>
<div class="col-lg-10">
<input type="number" class="form-control" name="gps_lat" id="name" value="<?=$pop->gps_lat?>">
<input type="number" step="any" class="form-control" name="gps_lat" id="name" value="<?=$pop->gps_lat?>">
</div>
</div>
<div class="form-group row">
<label class="col-lg-2 col-form-label" for="gps_long">GPS Länge</label>
<div class="col-lg-10">
<input type="number" class="form-control" name="gps_long" id="name" value="<?=$pop->gps_long?>">
<input type="number" step="any" class="form-control" name="gps_long" id="name" value="<?=$pop->gps_long?>">
</div>
</div>