summaryrefslogtreecommitdiffstats
path: root/modules-available/dozmod/templates/templates.html
diff options
context:
space:
mode:
authorroot2019-02-19 18:53:50 +0100
committerroot2019-02-19 18:53:50 +0100
commit0ad4c0f8196b61699754762aacbaab0223478ab9 (patch)
treede434c4aea8d07ecd01cd3badd48d057d62c2d1b /modules-available/dozmod/templates/templates.html
parent[usb-lock-off] Edit rule cleanup and fix of the dropdown boxes. (diff)
parent[statistics] Fix RAM change warning to handle increase too (diff)
downloadslx-admin-usb-lock-off.tar.gz
slx-admin-usb-lock-off.tar.xz
slx-admin-usb-lock-off.zip
Merge branch 'master' into usb-lock-offusb-lock-off
Diffstat (limited to 'modules-available/dozmod/templates/templates.html')
-rw-r--r--modules-available/dozmod/templates/templates.html7
1 files changed, 4 insertions, 3 deletions
diff --git a/modules-available/dozmod/templates/templates.html b/modules-available/dozmod/templates/templates.html
index 3ee0ccbc..721de375 100644
--- a/modules-available/dozmod/templates/templates.html
+++ b/modules-available/dozmod/templates/templates.html
@@ -8,7 +8,7 @@
<p><i>{{lang_templatePageDescription}}</i></p>
- <form id="templateForm" role="form" method="POST" action="?do=dozmod&amp;section=templates">
+ <form id="templateForm" role="form" method="POST" action="?do=dozmod&amp;section=templates" onsubmit="return validateForm()">
<input type="hidden" name="token" value="{{token}}">
<input type="hidden" name="action" value="save">
@@ -80,7 +80,7 @@
{{/templates}}
</div>
- <button {{^allowedSave}}disabled{{/allowedSave}} type="submit" onclick="return validateForm()" class="btn btn-primary pull-right"><span class="glyphicon glyphicon-floppy-disk"></span> {{lang_save}}</button>
+ <button {{^allowedSave}}disabled{{/allowedSave}} type="submit" class="btn btn-primary pull-right"><span class="glyphicon glyphicon-floppy-disk"></span> {{lang_save}}</button>
</form>
<form method="POST" action="?do=dozmod&amp;section=templates">
<input type="hidden" name="token" value="{{token}}">
@@ -138,7 +138,7 @@ function validateForm() {
var missing = [];
mandatory.forEach(function (v,i) {
- if (value.indexOf("%" + v + "%") == -1) {
+ if (value.indexOf("%" + v + "%") === -1) {
missing.push(v);
}
});
@@ -155,6 +155,7 @@ function validateForm() {
if ($toppest === false || $toppest.offset().top > $frame.offset().top) {
$toppest = $frame;
}
+ $('#panel_' + setting).collapse('show');
/* overall result */
ok = false;
} else {