help: impl sudoE

Ref to https://github.com/tuna/issues/issues/1717
This commit is contained in:
Zenithal 2023-04-19 18:17:06 +00:00
parent 83aafb6f56
commit db4c569549
No known key found for this signature in database
GPG Key ID: 1189C659F3D04C1C

View File

@ -25,6 +25,10 @@ $(document).ready(() => {
const opt = $(select_selector).find('option:selected').data();
$.extend(template_data, opt);
}
// special hack for case-insensitive
if ("sudoe" in template_data) {
template_data.sudoE = template_data.sudoe;
}
const template = $.trim($(template_selector).text());
const content = Mark.up(
template,