fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
l10n fixes, once again
[wolnelektury.git]
/
wolnelektury
/
static
/
js
/
catalogue.js
diff --git
a/wolnelektury/static/js/catalogue.js
b/wolnelektury/static/js/catalogue.js
index
9679607
..
1eede5c
100644
(file)
--- a/
wolnelektury/static/js/catalogue.js
+++ b/
wolnelektury/static/js/catalogue.js
@@
-469,7
+469,9
@@
function serverTime() {
$('.book-list-index').click(function(){
$('.book-list-show-index').hide('slow');
$('.book-list-index').click(function(){
$('.book-list-show-index').hide('slow');
- $(this).parent().next('ul').toggle('slow');
+ if($(this).parent().next('ul:not(:hidden)').length == 0){
+ $(this).parent().next('ul').toggle('slow');
+ }
return false;
});
return false;
});