diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2014-05-13 15:31:11 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2014-06-02 12:53:59 +0200 |
commit | ec572607e136e5284991854db13b045632caafe6 (patch) | |
tree | be0974a3291ce9ada171846481b44d4bbac03780 /settings | |
parent | 7b63c2c0362a54218841d548c2cafb5bc417a0db (diff) | |
download | nextcloud-server-ec572607e136e5284991854db13b045632caafe6.tar.gz nextcloud-server-ec572607e136e5284991854db13b045632caafe6.zip |
remove group rename stuff, there is not support in the backends yet. to do for oc8.
Diffstat (limited to 'settings')
-rw-r--r-- | settings/ajax/changegroupname.php | 24 | ||||
-rw-r--r-- | settings/js/users/groups.js | 31 | ||||
-rw-r--r-- | settings/templates/users/part.grouplist.php | 7 |
3 files changed, 1 insertions, 61 deletions
diff --git a/settings/ajax/changegroupname.php b/settings/ajax/changegroupname.php deleted file mode 100644 index 9bb3c0af125..00000000000 --- a/settings/ajax/changegroupname.php +++ /dev/null @@ -1,24 +0,0 @@ -<?php - -OCP\JSON::callCheck(); -OCP\JSON::checkLoggedIn(); -OCP\JSON::checkAdminUser(); - -$l=OC_L10N::get('settings'); - -$groupname = $_POST["groupname"]; - -// Return Success story -// TODO : make changes to the API to allow this. -// setGroupname doesnt exist yet. -if(OC_Group::setGroupname($groupname)) { - OCP\JSON::success( - array("data" => array( - "message" => $l->t('Group name has been changed.'), - "groupname" => $groupname, - ) - ) - ); -} else { - OCP\JSON::error(array("data" => array( "message" => $l->t("Unable to change group name")))); -} diff --git a/settings/js/users/groups.js b/settings/js/users/groups.js index c3b8cc6a081..3b487624823 100644 --- a/settings/js/users/groups.js +++ b/settings/js/users/groups.js @@ -263,37 +263,6 @@ $(document).ready( function () { GroupList.showGroup(GroupList.getElementGID(this)); }); - // Implements Groupname editing. - $('#app-navigation').on('click', '.isgroup .rename', function (event) { - event.stopPropagation(); - var $li = $(this).closest('li'); - var gid = GroupList.getElementGID(this); - var groupname = escapeHTML(gid); - var $input = $('<input type="text" value="' + groupname + '">'); - $li.find('.dorename img').hide(); - $li.find('.dorename span').replaceWith($input); - $input.focus(); - $input.keypress(function (event) { - if (event.keyCode === 13) { - if ($input.val().length > 0) { - $.post( - OC.filePath('settings', 'ajax', 'changegroupname.php'), - { groupname: $input.val() } - ); - $input.blur(); - } else { - $input.blur(); - } - } - }); - $input.blur(function () { - var $input = $(this), groupname = $input.val(); - $input.closest('li').data('gid', groupname); - $input.replaceWith('<span>' + escapeHTML(groupname) + '</span>'); - $li.find('img').show(); - }); - }); - // Implements Quota Settings Toggle. var $appSettings = $('#app-settings'); $('#app-settings-header').on('click keydown',function(event) { diff --git a/settings/templates/users/part.grouplist.php b/settings/templates/users/part.grouplist.php index 466fe956cdc..2a55f8d7b92 100644 --- a/settings/templates/users/part.grouplist.php +++ b/settings/templates/users/part.grouplist.php @@ -38,11 +38,6 @@ <li data-gid="<?php p($group['name']) ?>" data-usercount="<?php p($group['usercount']) ?>" class="isgroup"> <a href="#" class="dorename"> <span class="groupname"><?php p($group['name']); ?></span> - <!-- TODO: backend does not support renaming groups yet - <img class="svg action rename" - src="<?php p(image_path('core', 'actions/rename.svg'))?>" - original-title="<?php p($l->t('Edit'))?>" alt="" /> - --> </a> <span class="utils"> <span class="usercount"><?php if($group['usercount'] > 0) { p($group['usercount']); } ?></span> @@ -52,4 +47,4 @@ </span> </li> <?php endforeach; ?> -</ul>
\ No newline at end of file +</ul> |