switch definition of 'destroy' action with definition of 'remove' action. i.e. 'remove' action will hide detailView and remove corresponding row from listView after action is done. [reviewed-by: Brian]

This commit is contained in:
Jessica Wang 2012-03-01 16:30:59 -08:00
parent a3666cb09b
commit 53c8e4fcad
3 changed files with 9 additions and 7 deletions

View File

@ -8340,12 +8340,14 @@ div.panel.ui-dialog div.list-view div.fixed-header {
}
.destroy .icon,
.remove .icon,
.delete .icon,
.decline .icon {
background-position: 1px -92px;
}
.destroy:hover .icon,
.remove:hover .icon,
.delete:hover .icon {
background-position: 1px -674px;
}

View File

@ -229,7 +229,7 @@
}
},
'delete': {
remove: {
label: 'label.action.delete.service.offering',
messages: {
confirm: function(args) {
@ -542,7 +542,7 @@
}
},
'delete': {
remove: {
label: 'label.action.delete.system.service.offering',
messages: {
confirm: function(args) {
@ -814,7 +814,7 @@
}
},
'delete': {
remove: {
label: 'label.action.delete.disk.offering',
messages: {
confirm: function(args) {
@ -1627,7 +1627,7 @@
var jsonObj = args.context.item;
var allowedActions = [];
allowedActions.push("edit");
allowedActions.push("delete");
allowedActions.push("remove");
return allowedActions;
};
@ -1635,7 +1635,7 @@
var jsonObj = args.context.item;
var allowedActions = [];
allowedActions.push("edit");
allowedActions.push("delete");
allowedActions.push("remove");
return allowedActions;
};
@ -1643,7 +1643,7 @@
var jsonObj = args.context.item;
var allowedActions = [];
allowedActions.push("edit");
allowedActions.push("delete");
allowedActions.push("remove");
return allowedActions;
};

View File

@ -242,7 +242,7 @@
}
},
destroy: function($detailView, args) {
remove: function($detailView, args) {
uiActions.standard($detailView, args, {
noRefresh: true,
complete: function(args) {