aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Resources/public/themes/baggy/js/closeMessage.js
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2016-01-22 13:45:10 +0100
committerJeremy Benoist <jeremy.benoist@gmail.com>2016-01-22 13:45:14 +0100
commit30d81a47c689e1d7d963fcd3fd42af9958805e31 (patch)
treecf1e1ccb801842cf4acc51c353bb481ede37d364 /src/Wallabag/CoreBundle/Resources/public/themes/baggy/js/closeMessage.js
parent124f8091cbb1e5cccd7972fa368f8e7c434e0e5b (diff)
downloadwallabag-30d81a47c689e1d7d963fcd3fd42af9958805e31.tar.gz
wallabag-30d81a47c689e1d7d963fcd3fd42af9958805e31.tar.zst
wallabag-30d81a47c689e1d7d963fcd3fd42af9958805e31.zip
Move public assets for themes
So they can be installed using the `assets:install` command and there'll no longer symlink in the repo They moved from `web/themes/...` to `bundles/wallabagcore/themes/...`
Diffstat (limited to 'src/Wallabag/CoreBundle/Resources/public/themes/baggy/js/closeMessage.js')
-rw-r--r--src/Wallabag/CoreBundle/Resources/public/themes/baggy/js/closeMessage.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/public/themes/baggy/js/closeMessage.js b/src/Wallabag/CoreBundle/Resources/public/themes/baggy/js/closeMessage.js
new file mode 100644
index 00000000..527719d5
--- /dev/null
+++ b/src/Wallabag/CoreBundle/Resources/public/themes/baggy/js/closeMessage.js
@@ -0,0 +1,17 @@
1$(function(){
2 //---------------------------------------------------------------------------
3 // Show the close icon when the user hover over a message
4 //---------------------------------------------------------------------------
5 // $('.messages').on('mouseenter', function(){
6 // $(this).find('a.closeMessage').stop(true, true).show();
7 // }).on('mouseleave', function(){
8 // $(this).find('a.closeMessage').stop(true, true).hide();
9 // });
10 //---------------------------------------------------------------------------
11 // Close the message box when the user clicks the close icon
12 //---------------------------------------------------------------------------
13 $('a.closeMessage').on('click', function(){
14 $(this).parents('div.messages').slideUp(300, function(){ $(this).remove(); });
15 return false;
16 });
17}); \ No newline at end of file