Skip to content
Snippets Groups Projects
Commit e7f8ebf3 authored by Phy's avatar Phy
Browse files

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
parent 30def7da
No related branches found
No related tags found
No related merge requests found
......@@ -193,7 +193,7 @@ class admin_plugin_acl extends DokuWiki_Admin_Plugin {
echo '<div class="footnotes"><div class="fn">'.NL;
echo '<sup><a id="fn__1" class="fn_bot" href="#fnt__1">1)</a></sup>'.NL;
echo $this->getLang('p_include');
echo '<div class="content">'.$this->getLang('p_include').'</div>';
echo '</div></div>';
echo '</div>'.NL;
......
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment