From 1ddc2864300ccc88a0767ee71ae9ebfe26e39662 Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Thu, 5 Jan 2012 11:40:00 -0800 Subject: [PATCH] bug 8776: cloudstack 3.0 new UI - router page - remove reboot action. --- ui/scripts/system.js | 33 +-------------------------------- 1 file changed, 1 insertion(+), 32 deletions(-) diff --git a/ui/scripts/system.js b/ui/scripts/system.js index 0ef68080afd..46b213a2d66 100644 --- a/ui/scripts/system.js +++ b/ui/scripts/system.js @@ -1532,38 +1532,7 @@ notification: { poll: pollAsyncJobResult } - }, - - restart: { - label: 'reboot router', - messages: { - confirm: function(args) { - return 'Are you sure you want to reboot router?'; - }, - notification: function(args) { - return 'rebooting router'; - } - }, - action: function(args) { - $.ajax({ - url: createURL('restartNetwork&id=' + args.context.routers[0].guestnetworkid), - //url: createURL('rebootRouter&id=' + args.context.routers[0].id), - dataType: 'json', - async: true, - success: function(json) { - var jid = json.restartnetworkresponse.jobid; - args.response.success({ - _custom: { - jobId: jid - } - }); - } - }); - }, - notification: { - poll: pollAsyncJobResult - } - }, + }, changeService: { label: 'Change service offering',