fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add basic login.
[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
..
d50edeb
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) {
+
$('a[href="#wltoc"]
').show();
+
}
+ if ($('#wltoc li a').length == 0) {
+ $('a[href="#wltoc"]').remove();
+ }
+
+ $("#toc").remove();
})})(jQuery);
})})(jQuery);