diff --git a/src/sunstone/public/js/sunstone.js b/src/sunstone/public/js/sunstone.js index 422478cb34..e140541095 100644 --- a/src/sunstone/public/js/sunstone.js +++ b/src/sunstone/public/js/sunstone.js @@ -828,15 +828,10 @@ function setupConfirmDialogs(){ //add the HTML with the standard question and buttons. dialog.html( '
\ -

'+tr("Confirm")+'

\ +

'+tr("Confirm")+'
 

\
\
\
'+tr("You have to confirm this action.")+'
\ -
\ -
\ -
\ -

\ -
\
\
'+tr("Do you want to proceed?")+'
\
\ @@ -852,7 +847,7 @@ function setupConfirmDialogs(){ dialog.html( '
\ -

'+tr("Confirm")+'

\ +

'+tr("Confirm")+'
 

\
\ \
\ @@ -865,12 +860,7 @@ function setupConfirmDialogs(){ \
\ \ -
\ -
\ -
\ - \ -
\ -
\ +
\
\
\ \
\ @@ -934,8 +924,8 @@ function popUpConfirmDialog(target_elem){ var action = SunstoneCfg["actions"][value]; if (action.elements()) { - $(".confirm_action", dialog).html(tr("Action: ") + value) - $(".confirm_ids", dialog).html(tr("Selected resource IDs: ") + action.elements().join(', ')) + var str = value.split('.'); + $(".confirm_action", dialog).html(str[1] + ' ' + str[0] + ': ' + action.elements().join(', ')) } $('div#confirm_tip',dialog).text(tip); @@ -963,8 +953,8 @@ function popUpConfirmWithSelectDialog(target_elem){ var action = SunstoneCfg["actions"][value]; if (action.elements()) { - $(".confirm_action", dialog).html(tr("Action: ") + value) - $(".confirm_ids", dialog).html(tr("Selected resource IDs: ") + action.elements().join(', ')) + var str = value.split('.'); + $(".confirm_action", dialog).html(str[1] + ' ' + str[0] + ': ' + action.elements().join(', ')) } $('button#confirm_with_select_proceed',dialog).val(value);