From 37b2454bd86aca75255c9a1a83a5038a7b7c19bb Mon Sep 17 00:00:00 2001 From: Nathan Kinkade Date: Thu, 12 Mar 2009 02:52:36 +0000 Subject: A couple fixes to make sure Not Spam and Delete button stay visible when needed. --- roundcubemail/skins/npk/functions.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/roundcubemail/skins/npk/functions.js b/roundcubemail/skins/npk/functions.js index 68886f184..3a59ef781 100644 --- a/roundcubemail/skins/npk/functions.js +++ b/roundcubemail/skins/npk/functions.js @@ -183,11 +183,13 @@ body_mouseup: function(evt, p) // It's a bit questionable to coopt the mouseup event for these // purposes, but here goes, and it keeps the code inside the skin - // and seems to // work well enough for now. + // and seems to work well enough for now. if (evt.target) { if (evt.target.childNodes[0].nodeValue=="Spam") toggle_hamnotspambutton('inline'); + else if (evt.target.childNodes[0].nodeValue=="Not Spam") + toggle_hamnotspambutton('inline'); else toggle_hamnotspambutton('none'); } @@ -196,6 +198,8 @@ body_mouseup: function(evt, p) { if (evt.target.childNodes[0].nodeValue=="Trash") toggle_deletebutton('inline'); + else if (evt.target.childNodes[0].nodeValue=="Delete") + toggle_deletebutton('inline'); else toggle_deletebutton('none'); } -- cgit v1.2.3