diff options
Diffstat (limited to 'app/Resources/static/themes/baggy/js/closeMessage.js')
-rw-r--r-- | app/Resources/static/themes/baggy/js/closeMessage.js | 36 |
1 files changed, 19 insertions, 17 deletions
diff --git a/app/Resources/static/themes/baggy/js/closeMessage.js b/app/Resources/static/themes/baggy/js/closeMessage.js index 527719d5..ae4b1791 100644 --- a/app/Resources/static/themes/baggy/js/closeMessage.js +++ b/app/Resources/static/themes/baggy/js/closeMessage.js | |||
@@ -1,17 +1,19 @@ | |||
1 | $(function(){ | 1 | var $ = global.jquery = require('jquery'); |
2 | //--------------------------------------------------------------------------- | 2 | |
3 | // Show the close icon when the user hover over a message | 3 | $(function () { |
4 | //--------------------------------------------------------------------------- | 4 | //--------------------------------------------------------------------------- |
5 | // $('.messages').on('mouseenter', function(){ | 5 | // Show the close icon when the user hover over a message |
6 | // $(this).find('a.closeMessage').stop(true, true).show(); | 6 | //--------------------------------------------------------------------------- |
7 | // }).on('mouseleave', function(){ | 7 | // $('.messages').on('mouseenter', function(){ |
8 | // $(this).find('a.closeMessage').stop(true, true).hide(); | 8 | // $(this).find('a.closeMessage').stop(true, true).show(); |
9 | // }); | 9 | // }).on('mouseleave', function(){ |
10 | //--------------------------------------------------------------------------- | 10 | // $(this).find('a.closeMessage').stop(true, true).hide(); |
11 | // Close the message box when the user clicks the close icon | 11 | // }); |
12 | //--------------------------------------------------------------------------- | 12 | //--------------------------------------------------------------------------- |
13 | $('a.closeMessage').on('click', function(){ | 13 | // Close the message box when the user clicks the close icon |
14 | $(this).parents('div.messages').slideUp(300, function(){ $(this).remove(); }); | 14 | //--------------------------------------------------------------------------- |
15 | return false; | 15 | $('a.closeMessage').on('click', function () { |
16 | }); | 16 | $(this).parents('div.messages').slideUp(300, function () { $(this).remove(); }); |
17 | }); \ No newline at end of file | 17 | return false; |
18 | }); | ||
19 | }); | ||