diff --git a/src/sunstone/public/js/plugins/provision-tab.js b/src/sunstone/public/js/plugins/provision-tab.js index d9b89f5d5e..c82731c889 100644 --- a/src/sunstone/public/js/plugins/provision-tab.js +++ b/src/sunstone/public/js/plugins/provision-tab.js @@ -955,7 +955,7 @@ function show_provision_user_info_callback(request, response) { accountingGraphs( $("#provision_user_info_acct_div"), { fixed_user: info.ID, - init_group_by: "vm" }); + fixed_group_by: "vm" }); } function show_provision_create_vm() { diff --git a/src/sunstone/public/js/sunstone.js b/src/sunstone/public/js/sunstone.js index dd6fa8ca45..c44c5ab6f7 100644 --- a/src/sunstone/public/js/sunstone.js +++ b/src/sunstone/public/js/sunstone.js @@ -3916,6 +3916,7 @@ function time_UTC(time){ // fixed_user fix an owner user ID // fixed_group fix an owner group ID // init_group_by "user", "group", "vm". init the group-by selector +// fixed_group_by "user", "group", "vm". set a fixed group-by selector function accountingGraphs(div, opt){ if(div.html() != ""){ @@ -3933,6 +3934,9 @@ function accountingGraphs(div, opt){
\ \
\ +
\ + \ +
\ \
\
\ @@ -3944,7 +3948,7 @@ function accountingGraphs(div, opt){
\
\
\ -
\ +
\
\ \
\ @@ -3955,9 +3959,8 @@ function accountingGraphs(div, opt){ \ \
\ -
\ - \ -
\ +
\ +
\
\
\
\ @@ -3983,11 +3986,11 @@ function accountingGraphs(div, opt){

'+tr("CPU hours")+'

\
\
\ -
\ +
\
\
\
\ -
\ +
\
\
\
\ @@ -3996,11 +3999,11 @@ function accountingGraphs(div, opt){

'+tr("Memory GB hours")+'

\
\
\ -
\ +
\
\
\
\ -
\ +
\
\
\
\ @@ -4106,6 +4109,9 @@ function accountingGraphs(div, opt){ if(opt.init_group_by != undefined){ $("#acct_group_by", div).val(opt.init_group_by); + }else if(opt.fixed_group_by != undefined){ + $("#acct_group_by", div).val(opt.fixed_group_by); + $("#acct_group_by_row", div).hide(); } //--------------------------------------------------------------------------