aboutsummaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-rw-r--r--web/js/fixmystreet-old-box.js39
1 files changed, 0 insertions, 39 deletions
diff --git a/web/js/fixmystreet-old-box.js b/web/js/fixmystreet-old-box.js
deleted file mode 100644
index 72eeafb4d..000000000
--- a/web/js/fixmystreet-old-box.js
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * fixmystreet-old-box.js
- * Create the 'email me updates' pop up box on old-style report display pages.
- */
-
-$(function(){
-
- if (!$('#email_alert_box').length) {
- return;
- }
-
- var timer;
- function email_alert_close() {
- $('#email_alert_box').hide('fast');
- }
-
- $('#email_alert').click(function(e) {
- e.preventDefault();
- if ($('#email_alert_box').is(':visible')) {
- email_alert_close();
- } else {
- var pos = $(this).position();
- $('#email_alert_box').css( { 'left': ( pos.left - 20 ) + 'px', 'top': ( pos.top + 20 ) + 'px' } );
- $('#email_alert_box').show('fast');
- $('#alert_rznvy').focus();
- }
- }).hover(function() {
- window.clearTimeout(timer);
- }, function() {
- timer = window.setTimeout(email_alert_close, 2000);
- });
-
- $('#email_alert_box').hover(function() {
- window.clearTimeout(timer);
- }, function() {
- timer = window.setTimeout(email_alert_close, 2000);
- });
-
-});