[pve-devel] [PATCH manager 10/10] ext6migrate: fix trailing whitespaces
Dominik Csapak
d.csapak at proxmox.com
Thu Mar 10 11:47:02 CET 2016
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
www/manager6/storage/Browser.js | 2 +-
www/manager6/storage/ContentView.js | 48 +++++++++++++++++------------------
www/manager6/storage/DirEdit.js | 8 +++---
www/manager6/storage/GlusterFsEdit.js | 10 ++++----
www/manager6/storage/IScsiEdit.js | 10 ++++----
www/manager6/storage/LVMEdit.js | 10 ++++----
www/manager6/storage/NFSEdit.js | 10 ++++----
www/manager6/storage/RBDEdit.js | 8 +++---
www/manager6/storage/SheepdogEdit.js | 8 +++---
www/manager6/storage/Summary.js | 2 +-
www/manager6/storage/ZFSEdit.js | 2 +-
www/manager6/storage/ZFSPoolEdit.js | 4 +--
12 files changed, 61 insertions(+), 61 deletions(-)
diff --git a/www/manager6/storage/Browser.js b/www/manager6/storage/Browser.js
index d58cce3..2da395c 100644
--- a/www/manager6/storage/Browser.js
+++ b/www/manager6/storage/Browser.js
@@ -27,7 +27,7 @@ Ext.define('PVE.storage.Browser', {
var caps = Ext.state.Manager.get('GuiCap');
Ext.apply(me, {
- title: Ext.String.format(gettext("Storage {0} on node {1}"),
+ title: Ext.String.format(gettext("Storage {0} on node {1}"),
"'" + storeid + "'", "'" + nodename + "'"),
hstateid: 'storagetab'
});
diff --git a/www/manager6/storage/ContentView.js b/www/manager6/storage/ContentView.js
index c6df0b8..5ee33af 100644
--- a/www/manager6/storage/ContentView.js
+++ b/www/manager6/storage/ContentView.js
@@ -74,8 +74,8 @@ Ext.define('PVE.grid.TemplateSelector', {
Ext.define('pve-aplinfo', {
extend: 'Ext.data.Model',
- fields: [
- 'template', 'type', 'package', 'version', 'headline', 'infopage',
+ fields: [
+ 'template', 'type', 'package', 'version', 'headline', 'infopage',
'description', 'os', 'section'
],
idProperty: 'template'
@@ -111,8 +111,8 @@ Ext.define('PVE.storage.TemplateDownload', {
handler: function(button, event, rec) {
PVE.Utils.API2Request({
url: '/nodes/' + me.nodename + '/aplinfo',
- params: {
- storage: me.storage,
+ params: {
+ storage: me.storage,
template: rec.data.template
},
method: 'POST',
@@ -121,8 +121,8 @@ Ext.define('PVE.storage.TemplateDownload', {
},
success: function(response, options) {
var upid = response.result.data;
-
- var win = Ext.create('PVE.window.TaskViewer', {
+
+ var win = Ext.create('PVE.window.TaskViewer', {
upid: upid
});
win.show();
@@ -159,7 +159,7 @@ Ext.define('PVE.storage.Upload', {
throw "no node name specified";
}
- if (!me.storage) {
+ if (!me.storage) {
throw "no storage ID specified";
}
@@ -224,7 +224,7 @@ Ext.define('PVE.storage.Upload', {
}
pbar.updateProgress(per, text);
};
-
+
var abortBtn = Ext.create('Ext.Button', {
text: gettext('Abort'),
disabled: true,
@@ -262,10 +262,10 @@ Ext.define('PVE.storage.Upload', {
xhr = new XMLHttpRequest();
- xhr.addEventListener("load", function(e) {
+ xhr.addEventListener("load", function(e) {
if (xhr.status == 200) {
me.close();
- } else {
+ } else {
var msg = gettext('Error') + " " + xhr.status.toString() + ": " + Ext.htmlEncode(xhr.statusText);
var result = Ext.decode(xhr.responseText);
result.message = msg;
@@ -274,7 +274,7 @@ Ext.define('PVE.storage.Upload', {
me.close();
});
- }
+ }
}, false);
xhr.addEventListener("error", function(e) {
@@ -283,16 +283,16 @@ Ext.define('PVE.storage.Upload', {
me.close();
});
});
-
+
xhr.upload.addEventListener("progress", function(evt) {
- if (evt.lengthComputable) {
- var percentComplete = evt.loaded / evt.total;
+ if (evt.lengthComputable) {
+ var percentComplete = evt.loaded / evt.total;
updateProgress(percentComplete, evt.loaded);
- }
+ }
}, false);
xhr.open("POST", "/api2/json" + baseurl, true);
- xhr.send(fd);
+ xhr.send(fd);
}
});
@@ -331,7 +331,7 @@ Ext.define('PVE.storage.ContentView', {
}
var storage = me.pveSelNode.data.storage;
- if (!storage) {
+ if (!storage) {
throw "no storage ID specified";
}
@@ -343,9 +343,9 @@ Ext.define('PVE.storage.ContentView', {
type: 'pve',
url: '/api2/json' + baseurl
},
- sorters: {
- property: 'volid',
- order: 'DESC'
+ sorters: {
+ property: 'volid',
+ order: 'DESC'
}
});
@@ -499,11 +499,11 @@ Ext.define('PVE.storage.ContentView', {
Ext.define('pve-storage-content', {
extend: 'Ext.data.Model',
- fields: [
- 'volid', 'content', 'format', 'size', 'used', 'vmid',
+ fields: [
+ 'volid', 'content', 'format', 'size', 'used', 'vmid',
'channel', 'id', 'lun',
- {
- name: 'text',
+ {
+ name: 'text',
convert: function(value, record) {
// check for volid, because if you click on a grouping header,
// it calls convert (but with an empty volid)
diff --git a/www/manager6/storage/DirEdit.js b/www/manager6/storage/DirEdit.js
index aba644b..ec20c60 100644
--- a/www/manager6/storage/DirEdit.js
+++ b/www/manager6/storage/DirEdit.js
@@ -10,7 +10,7 @@ Ext.define('PVE.storage.DirInputPanel', {
delete values.storage;
}
- values.disable = values.enable ? 0 : 1;
+ values.disable = values.enable ? 0 : 1;
delete values.enable;
return values;
@@ -78,7 +78,7 @@ Ext.define('PVE.storage.DirInputPanel', {
xtype: 'pveNodeSelector',
name: 'nodes',
fieldLabel: gettext('Nodes'),
- emptyText: gettext('All') + ' (' +
+ emptyText: gettext('All') + ' (' +
gettext('No restrictions') +')',
multiSelect: true,
autoSelect: false
@@ -94,7 +94,7 @@ Ext.define('PVE.storage.DirEdit', {
initComponent : function() {
var me = this;
-
+
me.create = !me.storageId;
if (me.create) {
@@ -115,7 +115,7 @@ Ext.define('PVE.storage.DirEdit', {
isAdd: true,
items: [ ipanel ]
});
-
+
me.callParent();
if (!me.create) {
diff --git a/www/manager6/storage/GlusterFsEdit.js b/www/manager6/storage/GlusterFsEdit.js
index 26822f3..7ebe97e 100644
--- a/www/manager6/storage/GlusterFsEdit.js
+++ b/www/manager6/storage/GlusterFsEdit.js
@@ -67,9 +67,9 @@ Ext.define('PVE.storage.GlusterFsInputPanel', {
delete values.storage;
}
- values.disable = values.enable ? 0 : 1;
+ values.disable = values.enable ? 0 : 1;
delete values.enable;
-
+
return values;
},
@@ -136,7 +136,7 @@ Ext.define('PVE.storage.GlusterFsInputPanel', {
xtype: 'pveNodeSelector',
name: 'nodes',
fieldLabel: gettext('Nodes'),
- emptyText: gettext('All') + ' (' +
+ emptyText: gettext('All') + ' (' +
gettext('No restrictions') +')',
multiSelect: true,
autoSelect: false
@@ -168,7 +168,7 @@ Ext.define('PVE.storage.GlusterFsEdit', {
initComponent : function() {
var me = this;
-
+
me.create = !me.storageId;
if (me.create) {
@@ -183,7 +183,7 @@ Ext.define('PVE.storage.GlusterFsEdit', {
create: me.create,
storageId: me.storageId
});
-
+
Ext.apply(me, {
subject: PVE.Utils.format_storage_type('glusterfs'),
isAdd: true,
diff --git a/www/manager6/storage/IScsiEdit.js b/www/manager6/storage/IScsiEdit.js
index 6d099ea..4bef1c8 100644
--- a/www/manager6/storage/IScsiEdit.js
+++ b/www/manager6/storage/IScsiEdit.js
@@ -69,9 +69,9 @@ Ext.define('PVE.storage.IScsiInputPanel', {
values.content = values.luns ? 'images' : 'none';
delete values.luns;
- values.disable = values.enable ? 0 : 1;
+ values.disable = values.enable ? 0 : 1;
delete values.enable;
-
+
return values;
},
@@ -121,7 +121,7 @@ Ext.define('PVE.storage.IScsiInputPanel', {
xtype: 'pveNodeSelector',
name: 'nodes',
fieldLabel: gettext('Nodes'),
- emptyText: gettext('All') + ' (' +
+ emptyText: gettext('All') + ' (' +
gettext('No restrictions') +')',
multiSelect: true,
autoSelect: false
@@ -150,7 +150,7 @@ Ext.define('PVE.storage.IScsiEdit', {
initComponent : function() {
var me = this;
-
+
me.create = !me.storageId;
if (me.create) {
@@ -165,7 +165,7 @@ Ext.define('PVE.storage.IScsiEdit', {
create: me.create,
storageId: me.storageId
});
-
+
Ext.apply(me, {
subject: PVE.Utils.format_storage_type('iscsi'),
isAdd: true,
diff --git a/www/manager6/storage/LVMEdit.js b/www/manager6/storage/LVMEdit.js
index e7756a1..aa7db2d 100644
--- a/www/manager6/storage/LVMEdit.js
+++ b/www/manager6/storage/LVMEdit.js
@@ -91,9 +91,9 @@ Ext.define('PVE.storage.LVMInputPanel', {
delete values.storage;
}
- values.disable = values.enable ? 0 : 1;
+ values.disable = values.enable ? 0 : 1;
delete values.enable;
-
+
return values;
},
@@ -189,7 +189,7 @@ Ext.define('PVE.storage.LVMInputPanel', {
xtype: 'pveNodeSelector',
name: 'nodes',
fieldLabel: gettext('Nodes'),
- emptyText: gettext('All') + ' (' +
+ emptyText: gettext('All') + ' (' +
gettext('No restrictions') +')',
multiSelect: true,
autoSelect: false
@@ -218,7 +218,7 @@ Ext.define('PVE.storage.LVMEdit', {
initComponent : function() {
var me = this;
-
+
me.create = !me.storageId;
if (me.create) {
@@ -233,7 +233,7 @@ Ext.define('PVE.storage.LVMEdit', {
create: me.create,
storageId: me.storageId
});
-
+
Ext.apply(me, {
subject: PVE.Utils.format_storage_type('lvm'),
isAdd: true,
diff --git a/www/manager6/storage/NFSEdit.js b/www/manager6/storage/NFSEdit.js
index 4b50a6f..77b4a34 100644
--- a/www/manager6/storage/NFSEdit.js
+++ b/www/manager6/storage/NFSEdit.js
@@ -70,9 +70,9 @@ Ext.define('PVE.storage.NFSInputPanel', {
delete values.storage;
}
- values.disable = values.enable ? 0 : 1;
+ values.disable = values.enable ? 0 : 1;
delete values.enable;
-
+
return values;
},
@@ -130,7 +130,7 @@ Ext.define('PVE.storage.NFSInputPanel', {
xtype: 'pveNodeSelector',
name: 'nodes',
fieldLabel: gettext('Nodes'),
- emptyText: gettext('All') + ' (' +
+ emptyText: gettext('All') + ' (' +
gettext('No restrictions') +')',
multiSelect: true,
autoSelect: false
@@ -162,7 +162,7 @@ Ext.define('PVE.storage.NFSEdit', {
initComponent : function() {
var me = this;
-
+
me.create = !me.storageId;
if (me.create) {
@@ -177,7 +177,7 @@ Ext.define('PVE.storage.NFSEdit', {
create: me.create,
storageId: me.storageId
});
-
+
Ext.apply(me, {
subject: 'NFS',
isAdd: true,
diff --git a/www/manager6/storage/RBDEdit.js b/www/manager6/storage/RBDEdit.js
index 5c5a453..8930a02 100644
--- a/www/manager6/storage/RBDEdit.js
+++ b/www/manager6/storage/RBDEdit.js
@@ -10,7 +10,7 @@ Ext.define('PVE.storage.RBDInputPanel', {
delete values.storage;
}
- values.disable = values.enable ? 0 : 1;
+ values.disable = values.enable ? 0 : 1;
delete values.enable;
return values;
@@ -86,7 +86,7 @@ Ext.define('PVE.storage.RBDInputPanel', {
xtype: 'pveNodeSelector',
name: 'nodes',
fieldLabel: gettext('Nodes'),
- emptyText: gettext('All') + ' (' +
+ emptyText: gettext('All') + ' (' +
gettext('No restrictions') +')',
multiSelect: true,
autoSelect: false
@@ -102,7 +102,7 @@ Ext.define('PVE.storage.RBDEdit', {
initComponent : function() {
var me = this;
-
+
me.create = !me.storageId;
if (me.create) {
@@ -123,7 +123,7 @@ Ext.define('PVE.storage.RBDEdit', {
isAdd: true,
items: [ ipanel ]
});
-
+
me.callParent();
if (!me.create) {
diff --git a/www/manager6/storage/SheepdogEdit.js b/www/manager6/storage/SheepdogEdit.js
index b3e64ec..086a570 100644
--- a/www/manager6/storage/SheepdogEdit.js
+++ b/www/manager6/storage/SheepdogEdit.js
@@ -12,7 +12,7 @@ Ext.define('PVE.storage.SheepdogInputPanel', {
delete values.storage;
}
- values.disable = values.enable ? 0 : 1;
+ values.disable = values.enable ? 0 : 1;
delete values.enable;
return values;
@@ -57,7 +57,7 @@ Ext.define('PVE.storage.SheepdogInputPanel', {
xtype: 'pveNodeSelector',
name: 'nodes',
fieldLabel: gettext('Nodes'),
- emptyText: gettext('All') + ' (' +
+ emptyText: gettext('All') + ' (' +
gettext('No restrictions') +')',
multiSelect: true,
autoSelect: false
@@ -73,7 +73,7 @@ Ext.define('PVE.storage.SheepdogEdit', {
initComponent : function() {
var me = this;
-
+
me.create = !me.storageId;
if (me.create) {
@@ -94,7 +94,7 @@ Ext.define('PVE.storage.SheepdogEdit', {
isAdd: true,
items: [ ipanel ]
});
-
+
me.callParent();
if (!me.create) {
diff --git a/www/manager6/storage/Summary.js b/www/manager6/storage/Summary.js
index b463d7a..3b3d86b 100644
--- a/www/manager6/storage/Summary.js
+++ b/www/manager6/storage/Summary.js
@@ -50,7 +50,7 @@ Ext.define('PVE.storage.Summary', {
me.on('activate', rstore.startUpdate);
me.on('hide', rstore.stopUpdate);
- me.on('destroy', rstore.stopUpdate);
+ me.on('destroy', rstore.stopUpdate);
me.callParent();
}
diff --git a/www/manager6/storage/ZFSEdit.js b/www/manager6/storage/ZFSEdit.js
index c3e4705..ea390b5 100644
--- a/www/manager6/storage/ZFSEdit.js
+++ b/www/manager6/storage/ZFSEdit.js
@@ -130,7 +130,7 @@ Ext.define('PVE.storage.ZFSInputPanel', {
Ext.define('PVE.storage.ZFSEdit', {
extend: 'PVE.window.Edit',
-
+
initComponent : function() {
var me = this;
diff --git a/www/manager6/storage/ZFSPoolEdit.js b/www/manager6/storage/ZFSPoolEdit.js
index 0616b69..7d955f9 100644
--- a/www/manager6/storage/ZFSPoolEdit.js
+++ b/www/manager6/storage/ZFSPoolEdit.js
@@ -104,7 +104,7 @@ Ext.define('PVE.storage.ZFSPoolInputPanel', {
checked: false,
uncheckedValue: 0,
fieldLabel: gettext('Thin provision')
- }
+ }
];
if (me.create || me.storageId !== 'local') {
@@ -125,7 +125,7 @@ Ext.define('PVE.storage.ZFSPoolInputPanel', {
Ext.define('PVE.storage.ZFSPoolEdit', {
extend: 'PVE.window.Edit',
-
+
initComponent : function() {
var me = this;
--
2.1.4
More information about the pve-devel
mailing list