summaryrefslogtreecommitdiffstats
path: root/modules-available/locationinfo/templates
diff options
context:
space:
mode:
authorSimon Rettberg2022-12-05 15:22:55 +0100
committerSimon Rettberg2022-12-05 15:22:55 +0100
commite36cf134765a79ba39c340012847bde94669365d (patch)
treef4f65fda6e0cf4aa665e97a4f3301d24b976395a /modules-available/locationinfo/templates
parent[rebootcontrol] WOL from Server > WOL from other subnet's client (diff)
downloadslx-admin-e36cf134765a79ba39c340012847bde94669365d.tar.gz
slx-admin-e36cf134765a79ba39c340012847bde94669365d.tar.xz
slx-admin-e36cf134765a79ba39c340012847bde94669365d.zip
[locationinfo] Minor JS tweaks
Diffstat (limited to 'modules-available/locationinfo/templates')
-rw-r--r--modules-available/locationinfo/templates/page-config-panel-url.html12
1 files changed, 6 insertions, 6 deletions
diff --git a/modules-available/locationinfo/templates/page-config-panel-url.html b/modules-available/locationinfo/templates/page-config-panel-url.html
index 365e15db..05913921 100644
--- a/modules-available/locationinfo/templates/page-config-panel-url.html
+++ b/modules-available/locationinfo/templates/page-config-panel-url.html
@@ -188,10 +188,10 @@
</div>
<div class="col-sm-3">
<input class="form-control" name="bookmarkUrls[]" type="text" value=""
- placeholder="http://www.bwlehrpool.de/" pattern=".*://.*">
+ placeholder="https://www.bwlehrpool.de/" pattern=".*://.*">
</div>
<div class="col-sm-1">
- <button type="button" class="btn btn-danger" onclick="this.closest('.row').remove()">
+ <button type="button" class="btn btn-danger" onclick="$(this).closest('.row').remove()">
<span class="glyphicon glyphicon-minus"></span>
</button>
</div>
@@ -208,7 +208,7 @@
placeholder="http://www.bwlehrpool.de/" pattern=".*://.*" required>
</div>
<div class="col-sm-1">
- <button type="button" class="btn btn-danger" onclick="this.closest('.row').remove()">
+ <button type="button" class="btn btn-danger" onclick="$(this).closest('.row').remove()">
<span class="glyphicon glyphicon-minus"></span>
</button>
</div>
@@ -227,11 +227,11 @@
</div>
</form>
-<script type="text/javascript"><!--
+<script>
document.addEventListener("DOMContentLoaded", function () {
// load value to dropdown menus
- $('#browser option[value="{{browser}}"]').attr("selected", "selected");
+ $('#browser option[value="{{browser}}"]').prop("selected", true);
browserChange();
});
@@ -257,4 +257,4 @@ function addBookmark() {
$('#bookmarks').append(rowCopy);
}
-//--></script>
+</script>