aboutsummaryrefslogtreecommitdiffstats
path: root/web/js.js
diff options
context:
space:
mode:
authormatthew <matthew>2007-01-26 22:48:30 +0000
committermatthew <matthew>2007-01-26 22:48:30 +0000
commitbbee4b335ef186cb4254831c22fca4517f8b4c85 (patch)
tree6a301f02afdbd58c5109b55ae75b77ca9bead5c9 /web/js.js
parent6557402a99d07c540381071320c82b7eea7c517b (diff)
Better alert handling, validation, checking; nicer front end, advertise
RSS/alerts upon confirmation.
Diffstat (limited to 'web/js.js')
-rw-r--r--web/js.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/web/js.js b/web/js.js
index fc1e7409b..45140816a 100644
--- a/web/js.js
+++ b/web/js.js
@@ -34,6 +34,22 @@ YAHOO.util.Event.onContentReady('mapForm', function() {
}
});
+YAHOO.util.Event.onContentReady('email_alert', function() {
+ this.onclick = function() {
+ if (this.on) {
+ YAHOO.util.Dom.setStyle('email_alert_box', 'display', 'none');
+ this.on = false;
+ } else {
+ var pos = YAHOO.util.Dom.getXY(this);
+ pos[0] -= 20; pos[1] += 20;
+ YAHOO.util.Dom.setStyle('email_alert_box', 'display', 'block');
+ YAHOO.util.Dom.setXY('email_alert_box', pos);
+ this.on = true;
+ }
+ return false;
+ }
+});
+
// I love the global
var tile_x = 0;
var tile_y = 0;