diff options
| author | Nathan Kinkade <nkinkade@nkinka.de> | 2009-03-11 23:57:08 +0000 |
|---|---|---|
| committer | Nathan Kinkade <nkinkade@nkinka.de> | 2009-03-11 23:57:08 +0000 |
| commit | 6968ba73c6887f0a5db55bb7620ce1fc70aa6374 (patch) | |
| tree | 47963de590ffb09ee4e0ecfec8f02010bc6ce459 | |
| parent | 85088c9fc60de969f3f5eebba2fcff60da944cc5 (diff) | |
Make sure that evt.target exists before trying to access it.
| -rw-r--r-- | roundcubemail/skins/npk/functions.js | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/roundcubemail/skins/npk/functions.js b/roundcubemail/skins/npk/functions.js index 5c77d9a85..8cd643b89 100644 --- a/roundcubemail/skins/npk/functions.js +++ b/roundcubemail/skins/npk/functions.js @@ -184,10 +184,13 @@ body_mouseup: function(evt, p) // It's a bit questionable to coopt the mouseup event for this // purpose, but it keeps the code inside the skin and seems to // work well enough for now. - if (evt.target.childNodes[0].nodeValue=="Spam") - toggle_hamnotspambutton('inline'); - else - toggle_hamnotspambutton('none'); + if (evt.target) + { + if (evt.target.childNodes[0].nodeValue=="Spam") + toggle_hamnotspambutton('inline'); + else + toggle_hamnotspambutton('none'); + } }, |
