diff --git a/www/manager6/VNCConsole.js b/www/manager6/VNCConsole.js index 34a3c399..3712fb9e 100644 --- a/www/manager6/VNCConsole.js +++ b/www/manager6/VNCConsole.js @@ -29,7 +29,7 @@ Ext.define('PVE.noVncConsole', { // always use same iframe, to avoid running several noVnc clients // at same time (to avoid performance problems) - var box = Ext.create('Ext.ux.IFrame', { id : "vncconsole" }); + var box = Ext.create('Ext.ux.IFrame', { itemid : "vncconsole" }); Ext.apply(me, { items: box, diff --git a/www/manager6/dc/RoleView.js b/www/manager6/dc/RoleView.js index 066d2e19..26a241f3 100644 --- a/www/manager6/dc/RoleView.js +++ b/www/manager6/dc/RoleView.js @@ -43,7 +43,7 @@ Ext.define('PVE.dc.RoleView', { dataIndex: 'roleid' }, { - id: 'privs', + itemid: 'privs', header: gettext('Privileges'), sortable: false, renderer: render_privs, @@ -60,4 +60,4 @@ Ext.define('PVE.dc.RoleView', { me.callParent(); } -}); \ No newline at end of file +}); diff --git a/www/manager6/lxc/SnapshotTree.js b/www/manager6/lxc/SnapshotTree.js index e654df46..76e816cc 100644 --- a/www/manager6/lxc/SnapshotTree.js +++ b/www/manager6/lxc/SnapshotTree.js @@ -79,7 +79,10 @@ Ext.define('PVE.lxc.SnapshotTree', { success: function(response, options) { var res = response.result.data; if (res.hasFeature) { - Ext.getCmp('snapshotBtn').enable(); + var snpBtns = Ext.ComponentQuery.query('#snapshotBtn'); + snpBtns.forEach(function(item){ + item.enable(); + }); } } }); @@ -208,7 +211,7 @@ Ext.define('PVE.lxc.SnapshotTree', { }); var snapshotBtn = Ext.create('Ext.Button', { - id: 'snapshotBtn', + itemId: 'snapshotBtn', text: gettext('Take Snapshot'), disabled: true, handler: function() {