Permalink
Browse files

fix(reportedcontent): Reported Content admin widget works again

Fixes #10151
  • Loading branch information...
mrclay committed Sep 4, 2016
1 parent 8a81845 commit 739259fcb52e7400d1156635345067d381f36b6d
Showing with 4 additions and 1 deletion.
  1. +4 −1 mod/reportedcontent/views/default/widgets/reportedcontent/content.php
@@ -18,4 +18,7 @@
$list = '<p class="mtm">' . elgg_echo('reportedcontent:none') . '</p>';
}
-echo $list;
+echo $list;
+
+// elgg_require_js() fails when widget is newly added
+?><script>require(['elgg/reportedcontent']);</script>

0 comments on commit 739259f

Please sign in to comment.