Skip to content
Snippets Groups Projects
Commit 7940c080 authored by Pregmodder's avatar Pregmodder
Browse files

Merge branch 'fixes' into 'pregmod-master'

Possible fix

See merge request !4379
parents 5bf076db 6865776c
No related branches found
No related tags found
1 merge request!4379Possible fix
...@@ -157,7 +157,7 @@ Macro.add('options', { ...@@ -157,7 +157,7 @@ Macro.add('options', {
if (found_index !== i || hasMultipleOptionsWithSameValue) { if (found_index !== i || hasMultipleOptionsWithSameValue) {
let onClickChange = args[hasComparitor ? 3 : 2]; let onClickChange = args[hasComparitor ? 3 : 2];
onClickChange = onClickChange ? ', ' + onClickChange : ''; onClickChange = onClickChange ? ', ' + onClickChange : '';
output += `<span class=${className}>[[${argText}${extraComment}|${passageName}][${variable}=${JSON.stringify(args[hasComparitor ? 1 : 0])}${onClickChange}]]</span>`; output += `<span class="${className}">[[${argText}${extraComment}|${passageName}][${variable}=${JSON.stringify(args[hasComparitor ? 1 : 0])}${onClickChange}]]</span>`;
} else if (showSelectedOption) { } else if (showSelectedOption) {
output += `<span class="optionMacroSelected ${className}">${argText}${extraComment}</span>`; output += `<span class="optionMacroSelected ${className}">${argText}${extraComment}</span>`;
} }
......
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