diff options
author | Sem <sembrestels@riseup.net> | 2012-07-17 18:18:28 +0200 |
---|---|---|
committer | Steve Clay <steve@mrclay.org> | 2012-11-19 08:01:02 -0500 |
commit | 004c2fbbb557ba2de60c2f05853d0f892383df45 (patch) | |
tree | 01ad3a6ce05693b62a3ae8b1c677b56e46ade985 /mod/groups/views | |
parent | 8183d5bbc2c18b6825da8ebfc15581231e23de04 (diff) | |
download | elgg-004c2fbbb557ba2de60c2f05853d0f892383df45.tar.gz elgg-004c2fbbb557ba2de60c2f05853d0f892383df45.tar.bz2 |
Refs #1854. Using text to warn of the handover, instead the toggle with javascript.
Diffstat (limited to 'mod/groups/views')
-rw-r--r-- | mod/groups/views/default/forms/groups/edit.php | 5 | ||||
-rw-r--r-- | mod/groups/views/default/groups/js.php | 18 |
2 files changed, 5 insertions, 18 deletions
diff --git a/mod/groups/views/default/forms/groups/edit.php b/mod/groups/views/default/forms/groups/edit.php index 52900d2d9..7a740b878 100644 --- a/mod/groups/views/default/forms/groups/edit.php +++ b/mod/groups/views/default/forms/groups/edit.php @@ -109,6 +109,11 @@ if ($entity && ($owner_guid == elgg_get_logged_in_user_guid() || elgg_is_admin_l )); ?> </label> + <?php + if ($owner_guid == elgg_get_logged_in_user_guid()) { + echo '<span class="elgg-text-help">' . elgg_echo('groups:owner:warning') . '</span>'; + } + ?> </div> <?php diff --git a/mod/groups/views/default/groups/js.php b/mod/groups/views/default/groups/js.php index c3698aadc..0319be14a 100644 --- a/mod/groups/views/default/groups/js.php +++ b/mod/groups/views/default/groups/js.php @@ -11,21 +11,3 @@ elgg.register_hook_handler('init', 'system', function() { // jQuery uses 0-based indexing $('#groups-tools').children('li:even').addClass('odd'); }); - -// Hide group owner dropdown -elgg.register_hook_handler('init', 'system', function() { - $('.groups-owner-input').hide().each(function(){ - $(this).after($( - '<?php - echo elgg_view('output/url', array( - 'text' => elgg_echo('groups:handover'), - 'rel' => 'toggle', - 'class' => 'elgg-button elgg-button-delete', - )); - ?>' - ).click(function(){ - $(this).hide() - .prev().show(); - })); - }); -}); |