crumb.text(text);
}
- $(window).click(function(){
+ $(document).click(function(){
$('#new>ul').hide();
$('#new').removeClass('active');
$('#new li').each(function(i,element){
$('#settings #expanddiv').click(function(event){
event.stopPropagation();
});
- $(window).click(function(){//hide the settings menu when clicking outside it
+ $(document).click(function(){//hide the settings menu when clicking outside it
$('#settings #expanddiv').slideUp(200);
});
OC.search.hide();
event.stopPropagation();
});
- $(window).click(function(event){
+ $(document).click(function(event){
OC.search.hide();
});
OC.search.lastResults=results;