1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-23 22:50:09 +03:00

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

(cherry picked from commit fceb88ee6ee1bc9fa1b6cc786a085c7038e9bc59)
This commit is contained in:
Hector Sanjuan 2012-06-22 10:19:37 +02:00 committed by Ruben S. Montero
parent abc580309d
commit a55dcd52e8
3 changed files with 6 additions and 11 deletions

View File

@ -742,6 +742,11 @@ $(document).ready(function(){
setupUpdatePasswordDialog();
setupUserQuotasDialog();
setUserAutorefresh();
//Setup quota icons
//Also for group tab
setupQuotaIcons();
initCheckAllBoxes(dataTable_users);
tableCheckboxesListener(dataTable_users);

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;
}

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.