some css tweaks regarding colors
[wolnelektury.git] / wolnelektury / static / js / base.js
1 (function($) {
2     $(function() {
3
4
5 $('#themes-list-toggle').click(function(event) {
6     event.preventDefault();
7     $('#themes-list').toggle('slow');
8 });
9
10
11 $('.open-player').click(function(event) {
12     event.preventDefault();
13     window.open($(this).attr('href'),
14         'player',
15         'width=420, height=500'
16         );
17 });
18
19
20         $('.book-list-index').click(function(){
21             $('.book-list-show-index').hide('slow');
22             if($(this).parent().next('ul:not(:hidden)').length == 0){
23                 $(this).parent().next('ul').toggle('slow');
24             }
25             return false;
26         });
27
28
29     });
30 })(jQuery)
31