diff --git a/interface/web/client/templates/client_edit_limits.htm b/interface/web/client/templates/client_edit_limits.htm index 1acad9d36d88280228c2aa1d76d9392536f6257e..3bdca109747665efb313c1c4255851213c55ab6f 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 3232f507346c6a52bb099d9906ac9311127a2d26..e3a391ac215be087257abb19e48fe9484056e532 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;