1
0
mirror of https://github.com/moparisthebest/wallabag synced 2024-12-23 15:58:55 -05:00
wallabag/themes/baggy/js/closeMessage.js

17 lines
892 B
JavaScript
Raw Normal View History

2014-02-12 15:58:40 -05:00
$(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;
});
});