fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Various fixes.
[wolnelektury.git]
/
src
/
wolnelektury
/
static
/
js
/
book_text
/
toc.js
diff --git
a/src/wolnelektury/static/js/book_text/toc.js
b/src/wolnelektury/static/js/book_text/toc.js
index
31f4e9f
..
d03bbb9
100644
(file)
--- a/
src/wolnelektury/static/js/book_text/toc.js
+++ b/
src/wolnelektury/static/js/book_text/toc.js
@@
-1,9
+1,17
@@
(function($){$(function(){
(function($){$(function(){
+ if ($("#toc a").length > 0) {
+ $("#toc > ol").appendTo($("#heretoc"));
+ }
-
if ($('#
toc li').length > 0) {
- $('#menu-toc').show();
-}
+
if ($('#wl
toc li').length > 0) {
+
$('#menu-toc').show();
+
}
+ if ($('#wltoc li a').length == 0) {
+ $('#menu li a[href="#wltoc"]').remove();
+ }
+
+ $("#toc").remove();
})})(jQuery);
})})(jQuery);