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);