Fix caption template references
This commit is contained in:
parent
7fe329b5cf
commit
2670709237
|
@ -409,7 +409,7 @@ jQuery(async function () {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
async function addSettings() {
|
async function addSettings() {
|
||||||
const html = await renderExtensionTemplateAsync('caption', 'settings');
|
const html = await renderExtensionTemplateAsync('caption', 'settings', { TEMPLATE_DEFAULT, PROMPT_DEFAULT });
|
||||||
$('#caption_container').append(html);
|
$('#caption_container').append(html);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -84,14 +84,14 @@
|
||||||
</div>
|
</div>
|
||||||
<div id="caption_prompt_block">
|
<div id="caption_prompt_block">
|
||||||
<label for="caption_prompt" data-i18n="Caption Prompt">Caption Prompt</label>
|
<label for="caption_prompt" data-i18n="Caption Prompt">Caption Prompt</label>
|
||||||
<textarea id="caption_prompt" class="text_pole" rows="1" placeholder="< Use default >">${PROMPT_DEFAULT}</textarea>
|
<textarea id="caption_prompt" class="text_pole" rows="1" placeholder="< Use default >">{{PROMPT_DEFAULT}}</textarea>
|
||||||
<label class="checkbox_label margin-bot-10px" for="caption_prompt_ask" title="Ask for a custom prompt every time an image is captioned.">
|
<label class="checkbox_label margin-bot-10px" for="caption_prompt_ask" title="Ask for a custom prompt every time an image is captioned.">
|
||||||
<input id="caption_prompt_ask" type="checkbox" class="checkbox">
|
<input id="caption_prompt_ask" type="checkbox" class="checkbox">
|
||||||
<span data-i18n="Ask every time">Ask every time</span>
|
<span data-i18n="Ask every time">Ask every time</span>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<label for="caption_template"><span data-i18n="Message Template">Message Template</span> <small><span data-i18n="(use _space">(use </span> <code>{{caption}}</code> <span data-i18n="macro)">macro)</span></small></label>
|
<label for="caption_template"><span data-i18n="Message Template">Message Template</span> <small><span data-i18n="(use _space">(use </span> <code>{{caption}}</code> <span data-i18n="macro)">macro)</span></small></label>
|
||||||
<textarea id="caption_template" class="text_pole" rows="2" placeholder="< Use default >">${TEMPLATE_DEFAULT}</textarea>
|
<textarea id="caption_template" class="text_pole" rows="2" placeholder="< Use default >">{{TEMPLATE_DEFAULT}}</textarea>
|
||||||
<label class="checkbox_label margin-bot-10px" for="caption_refine_mode">
|
<label class="checkbox_label margin-bot-10px" for="caption_refine_mode">
|
||||||
<input id="caption_refine_mode" type="checkbox" class="checkbox">
|
<input id="caption_refine_mode" type="checkbox" class="checkbox">
|
||||||
<span data-i18n="Edit captions before saving">Edit captions before saving</span>
|
<span data-i18n="Edit captions before saving">Edit captions before saving</span>
|
||||||
|
|
Loading…
Reference in New Issue