diff options
author | Matthew Somerville <matthew@mysociety.org> | 2012-03-10 01:28:18 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2012-03-10 01:28:18 +0000 |
commit | 9cc72424e17293fc8bd6226b721ac4e66dcc185e (patch) | |
tree | 10bf9d1c66a1954742dc8bf22e579cb087728ee6 | |
parent | 58b05ad2f998216df3680c3c9c68dfd119adf390 (diff) |
Buttons are no longer within this old container.
-rw-r--r-- | web/cobrands/fixmystreet/fixmystreet.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/cobrands/fixmystreet/fixmystreet.js b/web/cobrands/fixmystreet/fixmystreet.js index 316409ccc..231f09130 100644 --- a/web/cobrands/fixmystreet/fixmystreet.js +++ b/web/cobrands/fixmystreet/fixmystreet.js @@ -455,12 +455,12 @@ $.fn.drawer = function(id, ajax) { // Go directly to RSS feed if RSS button clicked on alert page // (due to not wanting around form to submit, though good thing anyway) - $('.shadow-wrap').on('click', '#alert_rss_button', function(e){ + $('.container').on('click', '#alert_rss_button', function(e){ e.preventDefault(); var feed = $('input[name=feed][type=radio]:checked').nextAll('a').attr('href'); window.location.href = feed; }); - $('.shadow-wrap').on('click', '#alert_email_button', function(e){ + $('.container').on('click', '#alert_email_button', function(e){ e.preventDefault(); var form = $('<form/>').attr({ method:'post', action:"/alert/subscribe" }); $('#alerts input[type=text], #alerts input[type=hidden], #alerts input[type=radio]:checked').each(function() { |