diff options
author | Phy <git@phy25.com> | 2019-01-07 22:11:33 -0500 |
---|---|---|
committer | Phy <git@phy25.com> | 2019-01-07 22:11:33 -0500 |
commit | e7f8ebf332532706ab55a1cf451e7fe3fec171ba (patch) | |
tree | b5337e73870464172af8e3d39697ea6f5cf4b090 /lib/scripts/page.js | |
parent | 30def7da1b644298a9135d5b6e6a9cc9838e951b (diff) | |
download | dokuwiki-e7f8ebf332532706ab55a1cf451e7fe3fec171ba.tar.gz dokuwiki-e7f8ebf332532706ab55a1cf451e7fe3fec171ba.zip |
fix ACL admin footnote JS error, fixes #2540
- ACL's hand-written template doesn't use div.content to wrap the footnote content
- jQuery object existence check should use $obj.length
Diffstat (limited to 'lib/scripts/page.js')
-rw-r--r-- | lib/scripts/page.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/scripts/page.js b/lib/scripts/page.js index aadff8ecf..2332af4de 100644 --- a/lib/scripts/page.js +++ b/lib/scripts/page.js @@ -89,7 +89,7 @@ dw_page = { var $content = jQuery(jQuery(this).attr('href')) // Footnote text anchor .parent().siblings('.content').clone(); - if (!$content) { + if (!$content.length) { return; } |