]> git.proxmox.com Git - proxmox-widget-toolkit.git/blobdiff - button/Button.js
follouwp: code cleanup for bond_mode_array
[proxmox-widget-toolkit.git] / button / Button.js
index 0d65d57f52846f1b19205dd2186431c24f9f8b3e..dade477b91f14da311cda0b500b2cbd33b4392ff 100644 (file)
@@ -64,15 +64,16 @@ Ext.define('Proxmox.button.Button', {
 
        me.callParent();
 
+       var grid;
        if (!me.selModel && me.selModel !== null) {
-           var grid = me.up('grid');
+           grid = me.up('grid');
            if (grid && grid.selModel) {
                me.selModel = grid.selModel;
            }
        }
 
        if (me.waitMsgTarget === true) {
-           var grid = me.up('grid');
+           grid = me.up('grid');
            if (grid) {
                me.waitMsgTarget = grid;
            } else {