Feature #1288: Remove delete-quota buttons from sunstone.

(cherry picked from commit fceb88ee6ee1bc9fa1b6cc786a085c7038e9bc59)
This commit is contained in:
Hector Sanjuan authored and Ruben S. Montero committed 2012-06-22 13:54:18 +02:00
1 parent abc580309d
commit a55dcd52e8
3 files changed
+6 -11

No files matched your search

@@ -742,6 +742,11 @@ $(document).ready(function(){
setupUpdatePasswordDialog();
setupUserQuotasDialog();
setUserAutorefresh();
//Setup quota icons
//Also for group tab
setupQuotaIcons();
initCheckAllBoxes(dataTable_users);
tableCheckboxesListener(dataTable_users);
+1 -6
View File
@@ -1067,11 +1067,6 @@ function setupQuotaIcons(){
$(this).parents('li').fadeOut(function(){$(this).remove()});
return false;
});
$('.quota_remove_icon').live('click',function(){
$(this).parents('li').fadeOut(function(){$(this).remove()});
return false;
});
}
function parseQuotas(elem){
@@ -1155,6 +1150,6 @@ function quotaListItem(quota_json){
'Leases: ' + quota_json.LEASES + (quota_json.LEASES_USED ? ' (' + quota_json.LEASES_USED + '). ': ". ");
break;
}
str += '<i class="quota_edit_icon icon-pencil"></i> <i class="quota_remove_icon icon-remove"></i></pre></li>';
str += '<i class="quota_edit_icon icon-pencil"></i></pre></li>';
return str;
}
-5
View File
@@ -309,11 +309,6 @@ $(document).ready(function(){
//This dialog is shared to update templates
setupTemplateUpdateDialog();
//Setup quota icons
//Live listeners not working when being added in specific
//context of users/groups dialog. Adding them globally then.
setupQuotaIcons();
//Listen for .action_buttons
//An action buttons runs a predefined action. If it has type
//"multiple" it runs that action on the elements of a datatable.