From db4c569549755c6d586138c2cc7bdabf29d47387 Mon Sep 17 00:00:00 2001 From: Zenithal Date: Wed, 19 Apr 2023 18:17:06 +0000 Subject: [PATCH] help: impl sudoE Ref to https://github.com/tuna/issues/issues/1717 --- static/js/help.es6 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/static/js/help.es6 b/static/js/help.es6 index d0ce906..466587c 100644 --- a/static/js/help.es6 +++ b/static/js/help.es6 @@ -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,