Import default subject/body for e-mails templates; fixes #496

Signed-off-by: Marco Vogt (vogti) <mail@mdvogt.de>
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Marco Vogt (vogti)
2014-12-11 14:07:18 +01:00
committed by Michael Kaufmann (d00p)
parent b0d5049e68
commit 6bfa95f8a8
17 changed files with 420 additions and 441 deletions

View File

@@ -145,4 +145,12 @@ $(document).ready(function() {
});
}
});
// Mail Templates
var mailTemplate = $("#mailTemplate").html();
$("#mailLanguage").change(function() {
var mailLanguage = $(this).val();
var mailOptions = $(mailTemplate).filter(function() { return !$(this).attr("id") || $(this).attr("id") == mailLanguage; });
$("#mailTemplate").html(mailOptions);
});
$("#mailLanguage").trigger("change");
});