[pve-devel] r5510 - pve-manager/pve2/www/manager
svn-commits at proxmox.com
svn-commits at proxmox.com
Fri Feb 11 10:54:22 CET 2011
Author: dietmar
Date: 2011-02-11 10:54:22 +0100 (Fri, 11 Feb 2011)
New Revision: 5510
Modified:
pve-manager/pve2/www/manager/StorageBrowser.js
Log:
trigger load with 'show' event
Modified: pve-manager/pve2/www/manager/StorageBrowser.js
===================================================================
--- pve-manager/pve2/www/manager/StorageBrowser.js 2011-02-11 09:45:31 UTC (rev 5509)
+++ pve-manager/pve2/www/manager/StorageBrowser.js 2011-02-11 09:54:22 UTC (rev 5510)
@@ -204,10 +204,6 @@
win.show();
}
- },
- {
- text: "Refresh",
- handler: update_config
}
]
//flex: 1,
@@ -266,7 +262,6 @@
}
}
};
-
var store = new PVE.data.ObjectStore({
url: "/api2/json/storage/" + storeid,
@@ -296,6 +291,8 @@
cond_view_comp('backup', cthash.backup);
};
+ store.on('load', set_visible_tabs);
+
Ext.apply(self, {
title: title,
layout: 'fit',
@@ -304,11 +301,15 @@
defaults: {
border: false
},
-
items: [
{
title: 'Summary',
xtype: 'pveStorageSummary',
+ listeners: {
+ show: function() {
+ store.load();
+ }
+ },
confdata: self.confdata,
store: store,
id: 'status'
@@ -348,10 +349,6 @@
}
]
});
-
- store.on('load', set_visible_tabs);
-
- store.load();
PVE.StorageBrowser.superclass.initComponent.call(self);
}
More information about the pve-devel
mailing list