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:
authorThomas Müller <thomas.mueller@tmit.eu>2015-05-13 14:52:13 +0300
committerThomas Müller <thomas.mueller@tmit.eu>2015-05-13 14:52:13 +0300
commit9da585a004c217b5123d8d9395de56c2c739739d (patch)
tree276528685b0a017466701eefb7ec8cbf47d01052
parentb9febcb27cc9703233ef9938d3883dde0de31862 (diff)
parent6144afe65e194f846be8c4712566feb480eef779 (diff)
Merge pull request #27 from owncloud/fix-theme-selection
fix theme selection
-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);