mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-05-29 17:16:11 +00:00
window/Edit.js: implement autoLoad feature
This commit is contained in:
parent
f0372135cd
commit
a33ba257ed
@ -4,6 +4,9 @@ Ext.define('Proxmox.window.Edit', {
|
|||||||
extend: 'Ext.window.Window',
|
extend: 'Ext.window.Window',
|
||||||
alias: 'widget.proxmoxWindowEdit',
|
alias: 'widget.proxmoxWindowEdit',
|
||||||
|
|
||||||
|
// autoLoad trigger a load() after component creation
|
||||||
|
autoLoad: false,
|
||||||
|
|
||||||
resizable: false,
|
resizable: false,
|
||||||
|
|
||||||
// use this tio atimatically generate a title like
|
// use this tio atimatically generate a title like
|
||||||
@ -291,5 +294,9 @@ Ext.define('Proxmox.window.Edit', {
|
|||||||
me.isValid();
|
me.isValid();
|
||||||
me.suspendLayout = false;
|
me.suspendLayout = false;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (me.autoLoad) {
|
||||||
|
me.load();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user