aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--templates/web/base/report/_main.html2
-rw-r--r--templates/web/base/report/update.html2
-rw-r--r--web/cobrands/fixmystreet/fixmystreet.js2
3 files changed, 3 insertions, 3 deletions
diff --git a/templates/web/base/report/_main.html b/templates/web/base/report/_main.html
index a85bca08f..7dfaf979e 100644
--- a/templates/web/base/report/_main.html
+++ b/templates/web/base/report/_main.html
@@ -126,7 +126,7 @@
%]
<div class="moderate-display segmented-control" role="menu">
[% IF permissions.moderate %]
- <a id="moderate-report" role="menuitem" aria-label="[% loc('Moderate this report') %]">[% loc('Moderate') %]</a>
+ <a class="js-moderate" role="menuitem" aria-label="[% loc('Moderate this report') %]">[% loc('Moderate') %]</a>
[% END %]
[% IF !hide_inspect_button AND permissions.keys.grep('report_inspect|report_edit_category|report_edit_priority').size %]
<a href="/report/[% problem.id %]/inspect" role="menuitem">
diff --git a/templates/web/base/report/update.html b/templates/web/base/report/update.html
index 104e1d6f9..1a30a48f1 100644
--- a/templates/web/base/report/update.html
+++ b/templates/web/base/report/update.html
@@ -9,7 +9,7 @@
[% IF moderating; original_update = update.moderation_original_data %]
<form method="post" action="/moderate/report/[% problem.id %]/update/[% update.id %]">
<input type="hidden" name="token" value="[% csrf_token %]">
- <input type="button" class="btn moderate moderate-display" value="Moderate this update">
+ <input type="button" class="btn js-moderate moderate-display" value="Moderate this update">
<div class="moderate-edit">
<label><input type="checkbox" class="hide-document" name="update_hide">
Hide update completely?</label>
diff --git a/web/cobrands/fixmystreet/fixmystreet.js b/web/cobrands/fixmystreet/fixmystreet.js
index 8d45e4017..9b78ca580 100644
--- a/web/cobrands/fixmystreet/fixmystreet.js
+++ b/web/cobrands/fixmystreet/fixmystreet.js
@@ -802,7 +802,7 @@ $.extend(fixmystreet.set_up, {
function add_handlers (elem, word) {
elem.each( function () {
var $elem = $(this);
- $elem.find('#moderate-report').on('click', function () {
+ $elem.find('.js-moderate').on('click', function () {
$elem.find('.moderate-display').hide();
$elem.find('.moderate-edit').show();
});