[pve-devel] r6266 - in pve-manager/pve2/www/manager/data: . reader
svn-commits at proxmox.com
svn-commits at proxmox.com
Fri Jul 8 11:05:53 CEST 2011
Author: dietmar
Date: 2011-07-08 11:05:53 +0200 (Fri, 08 Jul 2011)
New Revision: 6266
Modified:
pve-manager/pve2/www/manager/data/TimezoneStore.js
pve-manager/pve2/www/manager/data/reader/JsonObject.js
Log:
make lint happy
Modified: pve-manager/pve2/www/manager/data/TimezoneStore.js
===================================================================
--- pve-manager/pve2/www/manager/data/TimezoneStore.js 2011-07-08 08:46:23 UTC (rev 6265)
+++ pve-manager/pve2/www/manager/data/TimezoneStore.js 2011-07-08 09:05:53 UTC (rev 6266)
@@ -416,8 +416,6 @@
constructor: function(config) {
var me = this;
- var statics = me.statics();
-
config = config || {};
Ext.regModel('Timezone', {
@@ -430,7 +428,7 @@
Ext.apply(config, {
model: 'Timezone',
- data: statics.timezones
+ data: PVE.data.TimezoneStore.timezones
});
me.callParent([config]);
Modified: pve-manager/pve2/www/manager/data/reader/JsonObject.js
===================================================================
--- pve-manager/pve2/www/manager/data/reader/JsonObject.js 2011-07-08 08:46:23 UTC (rev 6265)
+++ pve-manager/pve2/www/manager/data/reader/JsonObject.js 2011-07-08 09:05:53 UTC (rev 6266)
@@ -27,12 +27,14 @@
try {
var result = Ext.decode(response.responseText);
var root = me.getRoot(result);
+ var org_root = root;
- if (Ext.isArray(root)) {
- if (root.length == 1)
- root = root[0];
- else
+ if (Ext.isArray(org_root)) {
+ if (org_root.length == 1) {
+ root = org_root[0];
+ } else {
root = {};
+ }
}
if (me.rows) {
More information about the pve-devel
mailing list