mirror of https://github.com/apache/cloudstack.git
Added the ability to show warning (exclamation mark) icon on confirmation dialogs.
Signed-off-by: Brian Federle <brian.federle@citrix.com>
This commit is contained in:
parent
d5c71677db
commit
3bcd22bdaf
|
|
@ -3986,6 +3986,10 @@ Dialogs*/
|
|||
background: url(../images/icons.png) no-repeat 0px -255px;
|
||||
}
|
||||
|
||||
.ui-dialog.warning .ui-dialog-title {
|
||||
background: url(../images/icons.png) no-repeat 0px -286px;
|
||||
}
|
||||
|
||||
.ui-dialog.confirm .ui-button {
|
||||
/*+placement:shift 0px -8px;*/
|
||||
position: relative;
|
||||
|
|
|
|||
|
|
@ -574,6 +574,7 @@
|
|||
createForm: {
|
||||
title: 'label.action.destroy.instance',
|
||||
desc: 'label.action.destroy.instance',
|
||||
isWarning: true,
|
||||
preFilter: function(args) {
|
||||
if (isAdmin() || isDomainAdmin()) {
|
||||
args.$form.find('.form-item[rel=expunge]').css('display', 'inline-block');
|
||||
|
|
|
|||
|
|
@ -1084,6 +1084,7 @@
|
|||
confirm: function(args) {
|
||||
return 'message.action.delete.network';
|
||||
},
|
||||
isWarning: true,
|
||||
notification: function(args) {
|
||||
return 'label.action.delete.network';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@
|
|||
$('.overlay').remove();
|
||||
|
||||
return $formContainer.dialog({
|
||||
dialogClass: 'create-form',
|
||||
dialogClass: args.form.isWarning ? 'create-form warning' : 'create-form',
|
||||
closeOnEscape: false,
|
||||
draggable: false,
|
||||
width: 400,
|
||||
|
|
@ -844,7 +844,7 @@
|
|||
)
|
||||
).dialog({
|
||||
title: _l('label.confirmation'),
|
||||
dialogClass: 'confirm',
|
||||
dialogClass: args.isWarning ? 'confirm warning': 'confirm',
|
||||
closeOnEscape: false,
|
||||
zIndex: 5000,
|
||||
buttons: [{
|
||||
|
|
|
|||
|
|
@ -311,6 +311,7 @@
|
|||
if (messages && messages.confirm) {
|
||||
cloudStack.dialog.confirm({
|
||||
message: messages.confirm(messageArgs),
|
||||
isWarning: messages.isWarning,
|
||||
action: function() {
|
||||
performAction({
|
||||
id: id
|
||||
|
|
|
|||
Loading…
Reference in New Issue