Skip to content

Commit 328e6ce

Browse files
committed
Fixed: FS#992 - No additional template selected
1 parent a3014ea commit 328e6ce

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

interface/web/client/templates/client_edit_limits.htm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ <h2><tmpl_var name="list_head_txt"></h2>
2828
<select name="tpl_add_select" id="tpl_add_select" class="selectInput">
2929
{tmpl_var name='tpl_add_select'}
3030
</select>
31-
<span id="template_additional_list">{tmpl_var name='template_additional_list'}</span>
31+
<div id="template_additional_list"><br /><br />{tmpl_var name='template_additional_list'}</div>
3232
<input type="hidden" id="template_additional" name="template_additional" value="{tmpl_var name='template_additional'}">
3333
</div>
3434
<div class="ctrlHolder">

interface/web/js/scrigo.js.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,11 +460,12 @@ function pass_contains(pass, check) {
460460

461461
function addAdditionalTemplate(){
462462
var tpl_add = document.getElementById('template_additional').value;
463-
if(tpl_add != '') {
463+
464464
var tpl_list = document.getElementById('template_additional_list').innerHTML;
465465
var addTemplate = document.getElementById('tpl_add_select').value.split('|',2);
466466
var addTplId = addTemplate[0];
467467
var addTplText = addTemplate[1];
468+
if(addTplId > 0) {
468469
var newVal = tpl_add + '/' + addTplId + '/';
469470
newVal = newVal.replace('//', '/');
470471
var newList = tpl_list + '<br>' + addTplText;

0 commit comments

Comments
 (0)