mirror of https://github.com/apache/cloudstack.git
new UI - instance page - router tab - retire function vmRouterAfterSubgridItemAction()
This commit is contained in:
parent
2ddec0d855
commit
94737421c7
|
|
@ -1726,34 +1726,37 @@ function doCreateTemplateFromVmVolume($actionLink, $subgridItem) {
|
|||
}).dialog("open");
|
||||
}
|
||||
|
||||
//***** Routers tab (begin) ***************************************************************************************
|
||||
|
||||
function vmRouterAfterSubgridItemAction(json, id, $subgridItem) {
|
||||
var jsonObj = json.queryasyncjobresultresponse.jobresult.domainrouter;
|
||||
vmRouterJSONToTemplate(jsonObj, $subgridItem);
|
||||
}
|
||||
|
||||
//***** Routers tab (begin) ***************************************************************************************
|
||||
var vmRouterActionMap = {
|
||||
"Start Router": {
|
||||
isAsyncJob: true,
|
||||
asyncJobResponse: "startrouterresponse",
|
||||
inProcessText: "Starting Router....",
|
||||
dialogBeforeActionFn : doStartVmRouter,
|
||||
afterActionSeccessFn: vmRouterAfterSubgridItemAction
|
||||
afterActionSeccessFn: function(json, id, $subgridItem) {
|
||||
var jsonObj = json.queryasyncjobresultresponse.jobresult.domainrouter;
|
||||
vmRouterJSONToTemplate(jsonObj, $subgridItem);
|
||||
}
|
||||
},
|
||||
"Stop Router": {
|
||||
isAsyncJob: true,
|
||||
asyncJobResponse: "stoprouterresponse",
|
||||
inProcessText: "Stopping Router....",
|
||||
dialogBeforeActionFn : doStopVmRouter,
|
||||
afterActionSeccessFn: vmRouterAfterSubgridItemAction
|
||||
afterActionSeccessFn: function(json, id, $subgridItem) {
|
||||
var jsonObj = json.queryasyncjobresultresponse.jobresult.domainrouter;
|
||||
vmRouterJSONToTemplate(jsonObj, $subgridItem);
|
||||
}
|
||||
},
|
||||
"Reboot Router": {
|
||||
isAsyncJob: true,
|
||||
asyncJobResponse: "rebootrouterresponse",
|
||||
inProcessText: "Rebooting Router....",
|
||||
dialogBeforeActionFn : doRebootVmRouter,
|
||||
afterActionSeccessFn: vmRouterAfterSubgridItemAction
|
||||
afterActionSeccessFn: function(json, id, $subgridItem) {
|
||||
var jsonObj = json.queryasyncjobresultresponse.jobresult.domainrouter;
|
||||
vmRouterJSONToTemplate(jsonObj, $subgridItem);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue