From c250411257a2037520cb0075f4ddc9d80edb50f3 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 27 Apr 2018 14:43:45 +0200 Subject: [dozmod] Open mail templates with missing placeholders on save --- modules-available/dozmod/templates/templates.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'modules-available/dozmod/templates/templates.html') 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 @@

{{lang_templatePageDescription}}

-
+ @@ -80,7 +80,7 @@ {{/templates}} - +
@@ -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 { -- cgit v1.2.3-55-g7522