Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/templateeditor.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'js/settings-admin.js')
-rw-r--r--js/settings-admin.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/js/settings-admin.js b/js/settings-admin.js
index 67ffb71..a48e11a 100644
--- a/js/settings-admin.js
+++ b/js/settings-admin.js
@@ -1,6 +1,9 @@
$(document).ready(function() {
var loadTemplate = function (theme, template) {
+ if (template === '' || theme === '') {
+ return;
+ }
//the first time we load a template show the editor
$( '#mailTemplateSettings .templateEditor:hidden').show(400);
$( '#mailTemplateSettings .templateEditor + .actions:hidden').show(400);