Opened 3 years ago
Last modified 3 years ago
#13400 closed defect
$wikipage.offset() is undefined wiki.js:63 from non-existent wiki page — at Initial Version
Reported by: | Jun Omae | Owned by: | Jun Omae |
---|---|---|---|
Priority: | normal | Milestone: | 1.4.4 |
Component: | wiki system | Version: | 1.4.2 |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Javascript console says when visiting https://trac.edgewall.org/demo-1.4/wiki/NotFound:
18:44:50.803 TypeError: $wikipage.offset() is undefined wiki.js:63:37 centerLargeElements https://trac.edgewall.org/demo-1.4/chrome/common/js/wiki.js:63 wikiColumn https://trac.edgewall.org/demo-1.4/chrome/common/js/wiki.js:68 <anonymous> https://trac.edgewall.org/demo-1.4/wiki/NotFound:70 jQuery 4 i fireWith ready K
Patch:
-
trac/htdocs/js/wiki.js
diff --git a/trac/htdocs/js/wiki.js b/trac/htdocs/js/wiki.js index 3953e435a..d89ea9531 100644
a b 4 4 // within its container ($content). 5 5 6 6 window.wikiColumn = function($wikipage) { 7 if ($wikipage.length === 0) 8 return; 7 9 var $content = $("#content"); 8 10 $("<span id='trac-wiki-expander'></span>").on("click", function () { 9 11 $content.toggleClass('narrow');
Note:
See TracTickets
for help on using tickets.