mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-15 09:13:15 +09:00
Feature #3054: Make the quotas button open the in-place editing
This commit is contained in:
1 parent
edc0910ca3
commit
4404aa51ba
2 files changed
+14
-2
No files matched your search
@@ -1388,7 +1388,13 @@ function setupGroupQuotasDialog(){
|
||||
}
|
||||
|
||||
function popUpGroupQuotasDialog(){
|
||||
popUpQuotasDialog($group_quotas_dialog, 'Group', groupElements())
|
||||
var tab = dataTable_groups.parents(".tab");
|
||||
if (Sunstone.rightInfoVisible(tab)) {
|
||||
$('a[href="#group_quotas_tab"]', tab).click();
|
||||
$('#edit_quotas_button', tab).click();
|
||||
} else {
|
||||
popUpQuotasDialog($group_quotas_dialog, 'Group', groupElements())
|
||||
}
|
||||
}
|
||||
|
||||
$(document).ready(function(){
|
||||
|
||||
@@ -870,7 +870,13 @@ function setupUserQuotasDialog(){
|
||||
}
|
||||
|
||||
function popUpUserQuotasDialog(){
|
||||
popUpQuotasDialog($user_quotas_dialog, 'User', userElements());
|
||||
var tab = dataTable_users.parents(".tab");
|
||||
if (Sunstone.rightInfoVisible(tab)) {
|
||||
$('a[href="#user_quotas_tab"]', tab).click();
|
||||
$('#edit_quotas_button', tab).click();
|
||||
} else {
|
||||
popUpQuotasDialog($user_quotas_dialog, 'User', userElements());
|
||||
}
|
||||
}
|
||||
|
||||
function popUpCreateUserDialog(){
|
||||
|
||||
Reference in new issue
Block a user