Skip to content
Snippets Groups Projects
Commit 328e6ce7 authored by tbrehm's avatar tbrehm
Browse files

Fixed: FS#992 - No additional template selected

parent a3014ea9
No related branches found
No related tags found
No related merge requests found
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
<select name="tpl_add_select" id="tpl_add_select" class="selectInput"> <select name="tpl_add_select" id="tpl_add_select" class="selectInput">
{tmpl_var name='tpl_add_select'} {tmpl_var name='tpl_add_select'}
</select> </select>
<span id="template_additional_list">{tmpl_var name='template_additional_list'}</span> <div id="template_additional_list"><br /><br />{tmpl_var name='template_additional_list'}</div>
<input type="hidden" id="template_additional" name="template_additional" value="{tmpl_var name='template_additional'}"> <input type="hidden" id="template_additional" name="template_additional" value="{tmpl_var name='template_additional'}">
</div> </div>
<div class="ctrlHolder"> <div class="ctrlHolder">
......
...@@ -460,11 +460,12 @@ function pass_contains(pass, check) { ...@@ -460,11 +460,12 @@ function pass_contains(pass, check) {
function addAdditionalTemplate(){ function addAdditionalTemplate(){
var tpl_add = document.getElementById('template_additional').value; var tpl_add = document.getElementById('template_additional').value;
if(tpl_add != '') {
var tpl_list = document.getElementById('template_additional_list').innerHTML; var tpl_list = document.getElementById('template_additional_list').innerHTML;
var addTemplate = document.getElementById('tpl_add_select').value.split('|',2); var addTemplate = document.getElementById('tpl_add_select').value.split('|',2);
var addTplId = addTemplate[0]; var addTplId = addTemplate[0];
var addTplText = addTemplate[1]; var addTplText = addTemplate[1];
if(addTplId > 0) {
var newVal = tpl_add + '/' + addTplId + '/'; var newVal = tpl_add + '/' + addTplId + '/';
newVal = newVal.replace('//', '/'); newVal = newVal.replace('//', '/');
var newList = tpl_list + '<br>' + addTplText; var newList = tpl_list + '<br>' + addTplText;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment