]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
updated groups js to use new JS hook system
authorCash Costello <cash.costello@gmail.com>
Sun, 8 Jan 2012 19:24:09 +0000 (14:24 -0500)
committerCash Costello <cash.costello@gmail.com>
Sun, 8 Jan 2012 19:24:09 +0000 (14:24 -0500)
mod/groups/views/default/groups/js.php

index ad742445bbdaf0876d0ba5e5ef528f6421d6c135..1b4d33f32690e97592142b0c8389aa55756073d3 100644 (file)
@@ -1,5 +1,6 @@
 
-$(function() {
+// this adds a class to support IE8 and older
+elgg.register_hook_handler('init', 'system', function() {
        // jQuery uses 0-based indexing
        $('#groups-tools').children('li:even').addClass('odd');
 });