]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
window/Edit.js: implement autoLoad feature
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 29 Mar 2017 17:36:13 +0000 (19:36 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 29 Mar 2017 17:36:13 +0000 (19:36 +0200)
window/Edit.js

index 9f4f128cc0f72eb47325f5eac7a29ad39245bcc7..8c699059e2946a69dbd4fff7858e4ebe6637d1e6 100644 (file)
@@ -4,6 +4,9 @@ Ext.define('Proxmox.window.Edit', {
     extend: 'Ext.window.Window',
     alias: 'widget.proxmoxWindowEdit',
 
+    // autoLoad trigger a load() after component creation
+    autoLoad: false,
+
     resizable: false,
 
     // use this tio atimatically generate a title like
@@ -291,5 +294,9 @@ Ext.define('Proxmox.window.Edit', {
            me.isValid();
            me.suspendLayout = false;
        });
+
+       if (me.autoLoad) {
+           me.load();
+       }
     }
 });