From: Nicolas LÅ“uillet Date: Wed, 12 Feb 2014 20:51:11 +0000 (+0100) Subject: [fix] somes fixes on old default theme X-Git-Tag: 1.5.0^2~9 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=ed2853564e3db719abf5378b31fe5067dad513c4;p=github%2Fwallabag%2Fwallabag.git [fix] somes fixes on old default theme --- diff --git a/themes/default/_footer.twig b/themes/default/_footer.twig index f837ae38..3057cb75 100644 --- a/themes/default/_footer.twig +++ b/themes/default/_footer.twig @@ -1,4 +1,4 @@ \ No newline at end of file diff --git a/themes/default/_head.twig b/themes/default/_head.twig index 577cc693..f310e420 100644 --- a/themes/default/_head.twig +++ b/themes/default/_head.twig @@ -1,11 +1,12 @@ - - - - - - + + + + + + - - - - \ No newline at end of file + + + + + \ No newline at end of file diff --git a/themes/default/js/closeMessage.js b/themes/default/js/closeMessage.js new file mode 100644 index 00000000..b57fe4a8 --- /dev/null +++ b/themes/default/js/closeMessage.js @@ -0,0 +1,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; + }); +}); \ No newline at end of file