From 6a9df590d0c4616b32eac3a6a09f50f0e5a707b4 Mon Sep 17 00:00:00 2001 From: Dan Hansen Date: Wed, 27 Apr 2011 16:29:08 -0500 Subject: [PATCH] add show more functionality to notifications. don't scroll to the top of the page when clicked --- public/javascripts/widgets/notifications.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/public/javascripts/widgets/notifications.js b/public/javascripts/widgets/notifications.js index 95acc40ac..aeeb67bcd 100644 --- a/public/javascripts/widgets/notifications.js +++ b/public/javascripts/widgets/notifications.js @@ -19,6 +19,13 @@ type: "PUT" }); }); + + $("a.more").live("click", function(evt) { + evt.preventDefault(); + $(this).hide() + .next(".hidden") + .removeClass("hidden"); + }); }; };