diff options
author | matthew <matthew> | 2007-01-26 22:48:30 +0000 |
---|---|---|
committer | matthew <matthew> | 2007-01-26 22:48:30 +0000 |
commit | bbee4b335ef186cb4254831c22fca4517f8b4c85 (patch) | |
tree | 6a301f02afdbd58c5109b55ae75b77ca9bead5c9 /web/js.js | |
parent | 6557402a99d07c540381071320c82b7eea7c517b (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.js | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -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; |