From 8116a85ea78a0201e5780792933e05483cf0d242 Mon Sep 17 00:00:00 2001 From: tDidierjean Date: Wed, 2 Nov 2011 14:49:34 +0000 Subject: [PATCH] // Add class to opened notifications git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9800 b9a71923-0436-4b27-9f14-aed3839534dd --- admin-dev/themes/template/header.tpl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/admin-dev/themes/template/header.tpl b/admin-dev/themes/template/header.tpl index f36788c48..5157d8199 100644 --- a/admin-dev/themes/template/header.tpl +++ b/admin-dev/themes/template/header.tpl @@ -111,6 +111,10 @@ $(document).ready(function() var type = new Array(); $(".notifs").live("click", function(){ + // Add class "open_notifs" to the clicked notification, remove the class from other notificationqs + $('.notifs').removeClass('open_notifs'); + $(this).addClass('open_notifs'); + wrapper_id = $(this).attr("id"); type = wrapper_id.split("s_notif") $.post("ajax.php",