aboutsummaryrefslogtreecommitdiffstats
path: root/web/js
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2016-04-20 16:29:32 +0100
committerMatthew Somerville <matthew@mysociety.org>2016-04-20 19:37:33 +0100
commit97a01fcec2c48e379394e0127888edc2e5bbde91 (patch)
tree04df4cd736964be7fb690c0da6ad20ae75b5e73e /web/js
parent0fe0f7e15317fd66925195bbb624bbb572d2b8ef (diff)
Remove final web/fixmystreet templates.
And associated, e.g. nothing references fixmystreet-old-box.js any more.
Diffstat (limited to 'web/js')
-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);
- });
-
-});