From: Evan Broder Date: Thu, 5 Mar 2009 22:13:42 +0000 (-0500) Subject: Power off VMs after a Javascript popup. X-Git-Tag: 0.0.22~4 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/commitdiff_plain/4ed55b4ba8476ccdc46f0c7610870e39988f5e55 Power off VMs after a Javascript popup. svn path=/trunk/packages/invirt-web/; revision=2238 --- diff --git a/code/templates/list.tmpl b/code/templates/list.tmpl index 7c8e5d1..8a0231e 100644 --- a/code/templates/list.tmpl +++ b/code/templates/list.tmpl @@ -124,7 +124,11 @@ $helppopup('Windows')#slurp #if $machine.uptime then 'on' else 'off' " name="action" value="#slurp #if $machine.uptime then 'Power off' else 'Power on' -"/> +"#slurp +#if $machine.uptime + onclick="return confirm('Are you sure you want to power off this VM?');" +#end if +/> $machine.name