aboutsummaryrefslogtreecommitdiff
path: root/mod/groups
diff options
context:
space:
mode:
Diffstat (limited to 'mod/groups')
-rw-r--r--mod/groups/start.php1
-rw-r--r--mod/groups/views/default/groups/js.php3
-rw-r--r--mod/groups/views/default/groups/profile/widgets.php7
3 files changed, 4 insertions, 7 deletions
diff --git a/mod/groups/start.php b/mod/groups/start.php
index 8c3246660..18fb9abd5 100644
--- a/mod/groups/start.php
+++ b/mod/groups/start.php
@@ -63,6 +63,7 @@ function groups_init() {
//extend some views
elgg_extend_view('css/elgg', 'groups/css');
+ elgg_extend_view('js/elgg', 'groups/js');
// Access permissions
elgg_register_plugin_hook_handler('access:collections:write', 'all', 'groups_write_acl_plugin_hook');
diff --git a/mod/groups/views/default/groups/js.php b/mod/groups/views/default/groups/js.php
new file mode 100644
index 000000000..df74d52ee
--- /dev/null
+++ b/mod/groups/views/default/groups/js.php
@@ -0,0 +1,3 @@
+$(function() {
+ $('#groups-tools').find('.elgg-module:odd').addClass('odd');
+}); \ No newline at end of file
diff --git a/mod/groups/views/default/groups/profile/widgets.php b/mod/groups/views/default/groups/profile/widgets.php
index 027503560..28e43fdc4 100644
--- a/mod/groups/views/default/groups/profile/widgets.php
+++ b/mod/groups/views/default/groups/profile/widgets.php
@@ -12,11 +12,4 @@ echo '<div id="groups-tools" class="mtl clearfix">';
echo elgg_view("groups/tool_latest", array('entity' => $vars['entity']));
echo "</div>";
-?>
-<?php //@todo JS 1.8: no ?>
-<script type="text/javascript">
-$(function () { // subclass every other group tool widget
- $('#groups-tools').find('.elgg-module:odd').addClass('odd');
-});
-</script>