aboutsummaryrefslogblamecommitdiffhomepage
path: root/themes/baggy/public/js/closeMessage.js
blob: 527719d5a07837b29f1b9595dde451bd063adeff (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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;
     });
});