aboutsummaryrefslogtreecommitdiffstats
path: root/web/js.js
diff options
context:
space:
mode:
authormatthew <matthew>2007-09-25 11:19:29 +0000
committermatthew <matthew>2007-09-25 11:19:29 +0000
commit1216effb6fde2940fc78ecb169b3d20be4d45bb9 (patch)
tree240f63f6b51b8527cf52332844484ea17cf37c86 /web/js.js
parentebae1f0dec17877c4577137a9286b5cd19832283 (diff)
Put some photos on alert pages to brighten it up a bit ;)
Diffstat (limited to 'web/js.js')
-rw-r--r--web/js.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/web/js.js b/web/js.js
index 94c5b086e..bad1d4cc8 100644
--- a/web/js.js
+++ b/web/js.js
@@ -78,6 +78,8 @@ function email_alert_close() {
}
YAHOO.util.Event.onContentReady('email_alert', function() {
YAHOO.util.Event.addListener(this, 'click', function(e) {
+ if (!document.getElementById('email_alert_box'))
+ return true;
YAHOO.util.Event.preventDefault(e);
if (YAHOO.util.Dom.getStyle('email_alert_box', 'display') == 'block') {
email_alert_close();