From c86da31b33c57df2e2cc611bf088be70830bcd0c Mon Sep 17 00:00:00 2001 From: tbrehm <t.brehm@ispconfig.org> Date: Sun, 21 Mar 2010 07:05:13 -0400 Subject: [PATCH] Fixed: FS#1111 - Delete an 'in use' template should be blocked --- interface/web/js/scrigo.js.php | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/interface/web/js/scrigo.js.php b/interface/web/js/scrigo.js.php index 92eb747..e3a391a 100644 --- a/interface/web/js/scrigo.js.php +++ b/interface/web/js/scrigo.js.php @@ -84,8 +84,9 @@ loadContent(redirect); redirect = ''; } + document.getElementById('footer').innerHTML = 'Powered by <a href="http://www.ispconfig.org" target="_blank">ISPConfig</a>'; */ - document.getElementById('footer').innerHTML = 'Powered by <a href="http://www.ispconfig.org" target="_blank">ISPConfig <?php echo ISPC_APP_VERSION ?></a>'; + } function submitForm(formname,target) { @@ -459,11 +460,12 @@ function addAdditionalTemplate(){ var tpl_add = document.getElementById('template_additional').value; - if(tpl_add != '') { + var tpl_list = document.getElementById('template_additional_list').innerHTML; var addTemplate = document.getElementById('tpl_add_select').value.split('|',2); var addTplId = addTemplate[0]; var addTplText = addTemplate[1]; + if(addTplId > 0) { var newVal = tpl_add + '/' + addTplId + '/'; newVal = newVal.replace('//', '/'); var newList = tpl_list + '<br>' + addTplText; -- Gitblit v1.9.1