]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - app/Resources/static/themes/baggy/js/closeMessage.js
clean & lint stuff
[github/wallabag/wallabag.git] / app / Resources / static / themes / baggy / js / closeMessage.js
index 527719d5a07837b29f1b9595dde451bd063adeff..ae4b179127972d03e259a7cbf56b61a2264aa783 100644 (file)
@@ -1,17 +1,19 @@
-$(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;
-     });
-});
\ No newline at end of file
+var $ = global.jquery = require('jquery');
+
+$(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;
+  });
+});