new UI - instance page - router tab - retire function vmRouterAfterSubgridItemAction()

This commit is contained in:
Jessica Wang 2010-11-24 12:36:39 -08:00
parent 2ddec0d855
commit 94737421c7
1 changed files with 13 additions and 10 deletions

View File

@ -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);
}
}
}