diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-01-24 09:58:01 +0000 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-01-24 09:58:01 +0000 |
commit | 3c10672a588f07eb87fb1c65cb195215487ec19b (patch) | |
tree | 30c8935c1808a01c7f777b22c8bf8f3cf613d4a7 /web | |
parent | 5277688f17d1f0a26ae186779bb9aa4e8c7dd391 (diff) |
Fire shortlist JavaScript only on report lists.
It was also catching update lists, which have their own submit buttons
(e.g. for moderation).
Diffstat (limited to 'web')
-rw-r--r-- | web/cobrands/fixmystreet/fixmystreet.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/cobrands/fixmystreet/fixmystreet.js b/web/cobrands/fixmystreet/fixmystreet.js index bec4bc295..313d790c9 100644 --- a/web/cobrands/fixmystreet/fixmystreet.js +++ b/web/cobrands/fixmystreet/fixmystreet.js @@ -497,7 +497,7 @@ $.extend(fixmystreet.set_up, { btn.attr('name', 'shortlist-' + sw); } - $('.item-list').on('click', ':submit', function(e) { + $('.item-list--reports').on('click', ':submit', function(e) { e.preventDefault(); var $submitButton = $(this); |