From 4a0a2fbf8ea6a14b3787e2f91a3031c8306f9e47 Mon Sep 17 00:00:00 2001 From: bfederle Date: Tue, 7 Feb 2012 16:19:41 -0800 Subject: [PATCH] Projects: add project UI fix Remove actions column from 'Review' users list view -- this was having buggy behavior due to widget limitations. User can still add/remove afterwards by going to project detail view. --- ui/scripts/ui-custom/projects.js | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/ui/scripts/ui-custom/projects.js b/ui/scripts/ui-custom/projects.js index 9ebb5a38f46..e4f0725b541 100644 --- a/ui/scripts/ui-custom/projects.js +++ b/ui/scripts/ui-custom/projects.js @@ -420,32 +420,6 @@ } : { account: { label: 'Invited Accounts'} }, - actions: !cloudStack.projects.requireInvitation() ? { - destroy: { - label: 'Remove account from project', - action: { - custom: function(args) { - var $instanceRow = args.$instanceRow; - - $instanceRow.animate({ opacity: 0.5 }); - - cloudStack.projects.addUserForm.actions.destroy.action({ - context: $.extend(true, {}, cloudStack.context, { - projects: [project], - multiRule: [{ - username: $instanceRow.find('td.username span').html() - }] - }), - response: { - success: function(args) { - $instanceRow.remove(); - } - } - }); - } - } - } - } : {}, dataProvider: function(args) { setTimeout(function() { args.response.success({