Feature #3054: Make the quotas button open the in-place editing

This commit is contained in:
Carlos Martín committed 2014-07-24 18:50:32 +02:00
1 parent edc0910ca3
commit 4404aa51ba
2 files changed
+14 -2

No files matched your search

+7 -1
View File
@@ -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(){
+7 -1
View File
@@ -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(){