some css tweaks regarding colors
[wolnelektury.git] / wolnelektury / static / js / base.js
index b569383..51107fe 100755 (executable)
@@ -8,6 +8,24 @@ $('#themes-list-toggle').click(function(event) {
 });
 
 
+$('.open-player').click(function(event) {
+    event.preventDefault();
+    window.open($(this).attr('href'),
+        'player',
+        'width=420, height=500'
+        );
+});
+
+
+        $('.book-list-index').click(function(){
+            $('.book-list-show-index').hide('slow');
+            if($(this).parent().next('ul:not(:hidden)').length == 0){
+               $(this).parent().next('ul').toggle('slow');
+           }
+            return false;
+        });
+
+
     });
 })(jQuery)