[pve-devel] r6267 - pve-manager/pve2/www/manager/data
svn-commits at proxmox.com
svn-commits at proxmox.com
Fri Jul 8 11:09:09 CEST 2011
Author: dietmar
Date: 2011-07-08 11:09:09 +0200 (Fri, 08 Jul 2011)
New Revision: 6267
Modified:
pve-manager/pve2/www/manager/data/PVEProxy.js
pve-manager/pve2/www/manager/data/UpdateQueue.js
pve-manager/pve2/www/manager/data/UpdateStore.js
Log:
make lint happy
Modified: pve-manager/pve2/www/manager/data/PVEProxy.js
===================================================================
--- pve-manager/pve2/www/manager/data/PVEProxy.js 2011-07-08 09:05:53 UTC (rev 6266)
+++ pve-manager/pve2/www/manager/data/PVEProxy.js 2011-07-08 09:09:09 UTC (rev 6267)
@@ -72,8 +72,9 @@
var info = record.data;
var text;
- if (value)
+ if (value) {
return value;
+ }
// compute unique ID
return info.uid + ':' + info.node;
}
Modified: pve-manager/pve2/www/manager/data/UpdateQueue.js
===================================================================
--- pve-manager/pve2/www/manager/data/UpdateQueue.js 2011-07-08 09:05:53 UTC (rev 6266)
+++ pve-manager/pve2/www/manager/data/UpdateQueue.js 2011-07-08 09:09:09 UTC (rev 6267)
@@ -11,12 +11,14 @@
var idle = true;
var start_update = function() {
- if (!idle)
+ if (!idle) {
return;
+ }
var store = queue.shift();
- if (!store)
+ if (!store) {
return;
+ }
queue_idx[store.storeid] = null;
@@ -31,8 +33,9 @@
Ext.apply(me, {
queue: function(store) {
- if (!store.storeid)
+ if (!store.storeid) {
throw "unable to queue store without storeid";
+ }
if (!queue_idx[store.storeid]) {
queue_idx[store.storeid] = store;
queue.push(store);
Modified: pve-manager/pve2/www/manager/data/UpdateStore.js
===================================================================
--- pve-manager/pve2/www/manager/data/UpdateStore.js 2011-07-08 09:05:53 UTC (rev 6266)
+++ pve-manager/pve2/www/manager/data/UpdateStore.js 2011-07-08 09:09:09 UTC (rev 6267)
@@ -11,11 +11,13 @@
config = config || {};
- if (!config.interval)
+ if (!config.interval) {
config.interval = 3000;
+ }
- if (!config.storeid)
+ if (!config.storeid) {
throw "no storeid specified";
+ }
var load_task = new Ext.util.DelayedTask();
@@ -40,7 +42,7 @@
me.callParent([config]);
me.on('destroy', function() {
- loadtask.cancel();
+ load_task.cancel();
});
}
});
More information about the pve-devel
mailing list