forked from forgejo/forgejo
Forbid jQuery is
and fix issues (#30016)
Tested all functionality. --------- Co-authored-by: Yarden Shoham <git@yardenshoham.com> (cherry picked from commit 0a2f973de9b681a472c96bdfcd945978e88458d8)
This commit is contained in:
parent
c5eae64e06
commit
e28f4328b3
5 changed files with 9 additions and 9 deletions
|
@ -373,7 +373,7 @@ function initGlobalShowModal() {
|
|||
|
||||
if (attrTargetAttr) {
|
||||
$attrTarget[0][attrTargetAttr] = attrib.value;
|
||||
} else if ($attrTarget.is('input') || $attrTarget.is('textarea')) {
|
||||
} else if ($attrTarget[0].matches('input, textarea')) {
|
||||
$attrTarget.val(attrib.value); // FIXME: add more supports like checkbox
|
||||
} else {
|
||||
$attrTarget.text(attrib.value); // FIXME: it should be more strict here, only handle div/span/p
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue