ext6migrate: avoid using id

since id should be unique for the whole dom,
avoid using it

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2016-03-11 15:57:32 +01:00 committed by Dietmar Maurer
parent 04a234a024
commit bc53e0716d
3 changed files with 8 additions and 5 deletions

View File

@ -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,

View File

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

View File

@ -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() {