|
@@ -721,7 +721,7 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- value = value.replace('{children}', combined);
|
|
|
+ value = value.replace('{children}', ' ' + combined);
|
|
|
}
|
|
|
return value;
|
|
|
}
|
|
@@ -730,6 +730,16 @@
|
|
|
let container = $('.note-template-container:visible').first();
|
|
|
if(!container.length) return '';
|
|
|
let lines = [];
|
|
|
+ if(container.find('.note-template-set-chooser').length) {
|
|
|
+ lines.push('<b>' + container.find('.note-template-set-chooser').first().find('option:selected').text() + '</b>');
|
|
|
+ }
|
|
|
+ else if(container.find('.note-exam-template-set-chooser').length && container.find('.note-exam-exam-chooser').length) {
|
|
|
+ lines.push('<b>' +
|
|
|
+ container.find('.note-exam-template-set-chooser').first().find('option:selected').text() +
|
|
|
+ ': ' +
|
|
|
+ container.find('.note-exam-exam-chooser').first().find('option:selected').text() +
|
|
|
+ '</b>');
|
|
|
+ }
|
|
|
container.find('>.note-template-item.selected').each(function() {
|
|
|
lines.push('<p class="note-template-output-line">' + generateOutputForNode($(this)) + '</p>');
|
|
|
});
|