aboutsummaryrefslogtreecommitdiffstats
path: root/web/js
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2015-10-06 16:10:34 +0100
committerMatthew Somerville <matthew@mysociety.org>2015-10-07 14:57:12 +0100
commit300b6d5942c4c8726febd9681b47e2134e8efbf0 (patch)
tree93056ff042b1c44b5c3b55ea32eb7f5960593504 /web/js
parent4c9a3b14cb4bbc36f066805245d1d7b1cfd01374 (diff)
Fix lint issues in moderate.js.
Diffstat (limited to 'web/js')
-rw-r--r--web/js/moderate.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/web/js/moderate.js b/web/js/moderate.js
index 075766d0b..dd366df3f 100644
--- a/web/js/moderate.js
+++ b/web/js/moderate.js
@@ -1,12 +1,7 @@
-$(function () {
- setup_moderation( $('.problem-header'), 'problem' );
- setup_moderation( $('.issue-list .issue'), 'update' );
-});
-
function setup_moderation (elem, word) {
elem.each( function () {
- var $elem = $(this)
+ var $elem = $(this);
$elem.find('.moderate').click( function () {
$elem.find('.moderate-display').hide();
$elem.find('.moderate-edit').show();
@@ -40,3 +35,8 @@ function setup_moderation (elem, word) {
});
});
}
+
+$(function () {
+ setup_moderation( $('.problem-header'), 'problem' );
+ setup_moderation( $('.issue-list .issue'), 'update' );
+});