[pve-devel] r6086 - pve-manager/pve2/www/manager/qemu
svn-commits at proxmox.com
svn-commits at proxmox.com
Wed Jun 15 14:45:45 CEST 2011
Author: dietmar
Date: 2011-06-15 14:45:45 +0200 (Wed, 15 Jun 2011)
New Revision: 6086
Modified:
pve-manager/pve2/www/manager/qemu/HardwareView.js
Log:
extend toolbar
Modified: pve-manager/pve2/www/manager/qemu/HardwareView.js
===================================================================
--- pve-manager/pve2/www/manager/qemu/HardwareView.js 2011-06-15 12:44:55 UTC (rev 6085)
+++ pve-manager/pve2/www/manager/qemu/HardwareView.js 2011-06-15 12:45:45 UTC (rev 6086)
@@ -111,8 +111,41 @@
cwidth1: 150,
tbar: [
{
+ text: 'Add',
+ menu: new Ext.menu.Menu({
+ items: [
+ {
+ text: 'Hard Disk',
+ iconCls: 'pve-itype-icon-storage',
+ handler: function() {
+ var win = Ext.create('PVE.qemu.HDEdit', {
+ pveSelNode: me.pveSelNode,
+ });
+ win.on('destroy', reload)
+ win.show();
+ }
+ },
+ {
+ text: 'CD/DVD Drive',
+ iconCls: 'pve-itype-icon-cdrom',
+ handler: function() {
+ }
+ },
+ {
+ text: 'Network Device',
+ iconCls: 'pve-itype-icon-network',
+ handler: function() {
+ }
+ }
+ ]
+ })
+ },
+ {
text: "Edit",
handler: run_editor
+ },
+ {
+ text: "Delete"
}
],
rows: rows,
More information about the pve-devel
mailing list