From 328e6ce751e44c9fe2772a73e9faec2680ad30cb Mon Sep 17 00:00:00 2001 From: tbrehm Date: Thu, 28 Jan 2010 13:50:17 +0000 Subject: [PATCH] Fixed: FS#992 - No additional template selected --- interface/web/client/templates/client_edit_limits.htm | 2 +- interface/web/js/scrigo.js.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/interface/web/client/templates/client_edit_limits.htm b/interface/web/client/templates/client_edit_limits.htm index 1acad9d36..3bdca1097 100644 --- a/interface/web/client/templates/client_edit_limits.htm +++ b/interface/web/client/templates/client_edit_limits.htm @@ -28,7 +28,7 @@ - {tmpl_var name='template_additional_list'} +


{tmpl_var name='template_additional_list'}
diff --git a/interface/web/js/scrigo.js.php b/interface/web/js/scrigo.js.php index 3232f5073..e3a391ac2 100644 --- a/interface/web/js/scrigo.js.php +++ b/interface/web/js/scrigo.js.php @@ -460,11 +460,12 @@ function pass_contains(pass, check) { 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 + '
' + addTplText; -- GitLab