1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-07-12 16:58:37 +00:00

[fix] somes fixes on old default theme

This commit is contained in:
Nicolas Lœuillet 2014-02-12 21:51:11 +01:00
parent 26170f4613
commit ed2853564e
3 changed files with 29 additions and 11 deletions

View file

@ -0,0 +1,17 @@
$(function(){
//---------------------------------------------------------------------------
// Show the close icon when the user hover over a message
//---------------------------------------------------------------------------
$('.messages').on('mouseenter', function(){
$(this).find('a.closeMessage').stop(true, true).show();
}).on('mouseleave', function(){
$(this).find('a.closeMessage').stop(true, true).hide();
});
//---------------------------------------------------------------------------
// Close the message box when the user clicks the close icon
//---------------------------------------------------------------------------
$('a.closeMessage').on('click', function(){
$(this).parents('div.messages').slideUp(300, function(){ $(this).remove(); });
return false;
});
});