aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/Resources/static/themes/baggy/js/closeMessage.js
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2016-06-09 19:02:38 +0200
committerThomas Citharel <tcit@tcit.fr>2016-06-09 19:02:38 +0200
commit0743287f955fd19fd1a04c91f3b40a4ac2236423 (patch)
tree42d9f4efef7c8099416e24ce751de78524b9a58a /app/Resources/static/themes/baggy/js/closeMessage.js
parent5ecdfcd041767c9e3244a92bb0a6cc3c3f80fea3 (diff)
downloadwallabag-0743287f955fd19fd1a04c91f3b40a4ac2236423.tar.gz
wallabag-0743287f955fd19fd1a04c91f3b40a4ac2236423.tar.zst
wallabag-0743287f955fd19fd1a04c91f3b40a4ac2236423.zip
clean & lint stuff
Diffstat (limited to 'app/Resources/static/themes/baggy/js/closeMessage.js')
-rw-r--r--app/Resources/static/themes/baggy/js/closeMessage.js36
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(){ 1var $ = 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});