summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Kinkade <nkinkade@nkinka.de>2009-03-12 02:52:36 +0000
committerNathan Kinkade <nkinkade@nkinka.de>2009-03-12 02:52:36 +0000
commit37b2454bd86aca75255c9a1a83a5038a7b7c19bb (patch)
tree800a487a41641d673af4fd1282a4c7c17f5aa8b5
parent5d1f618ce1188a375cf8d3015cae6977dc35267d (diff)
A couple fixes to make sure Not Spam and Delete button stay visible when needed.
-rw-r--r--roundcubemail/skins/npk/functions.js6
1 files changed, 5 insertions, 1 deletions
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');
}