Merge branch 'pretty' of github.com:fnp/wolnelektury into pretty
[wolnelektury.git] / wolnelektury / static / js / base.js
index 8225a1f..7c02f03 100755 (executable)
                                        } 
                                });
                        });
                                        } 
                                });
                        });
+                       $('body').click(function(e) {
+                               if ($current == null) return;
+                               var p = $(e.target);
+                               while (p.length) {
+                                       if (p == $current)
+                                               return;
+                                       if (p.hasClass('hidden-box-trigger'))
+                                               return;
+                                       p = p.parent();
+                               }
+                               $current.hide('fast');
+                               $current = null;
+                       });
                })();
                })();
+               
 
 
 
 
 
 
@@ -100,6 +114,8 @@ $('.open-player').click(function(event) {
             return false;
         });
 
             return false;
         });
 
+       $(function(){
+           $("#search").search();});
 
     });
 })(jQuery)
 
     });
 })(jQuery)