bug 12910: cloudstack 3.0 new UI - stop router - add checkbox "Force stop" on dialog box.

This commit is contained in:
Jessica Wang 2012-01-11 14:22:48 -08:00
parent 82cf4e2a31
commit db527555e1
1 changed files with 15 additions and 2 deletions

View File

@ -1534,7 +1534,18 @@
},
stop: {
label: 'Stop router',
label: 'Stop router',
createForm: {
title: 'Stop router',
desc: 'Please confirm that you want to stop this router',
fields: {
forced: {
label: 'Force stop',
isBoolean: true,
isChecked: false
}
}
},
messages: {
confirm: function(args) {
return 'Are you sure you want to stop router?';
@ -1544,8 +1555,10 @@
}
},
action: function(args) {
var array1 = [];
array1.push("&forced=" + (args.data.forced == "on"));
$.ajax({
url: createURL('stopRouter&id=' + args.context.routers[0].id),
url: createURL('stopRouter&id=' + args.context.routers[0].id + array1.join("")),
dataType: 'json',
async: true,
success: function(json) {