From ec572607e136e5284991854db13b045632caafe6 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Tue, 13 May 2014 15:31:11 +0200 Subject: remove group rename stuff, there is not support in the backends yet. to do for oc8. --- settings/ajax/changegroupname.php | 24 ---------------------- settings/js/users/groups.js | 31 ----------------------------- settings/templates/users/part.grouplist.php | 7 +------ 3 files changed, 1 insertion(+), 61 deletions(-) delete mode 100644 settings/ajax/changegroupname.php (limited to 'settings') 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 @@ - 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 = $(''); - $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('' + escapeHTML(groupname) + ''); - $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 @@
  • - 0) { p($group['usercount']); } ?> @@ -52,4 +47,4 @@
  • - \ No newline at end of file + -- cgit v1.2.3