[pve-devel] r6381 - in pve-manager/pve2: . www/manager/storage
svn-commits at proxmox.com
svn-commits at proxmox.com
Fri Jul 29 08:42:45 CEST 2011
Author: dietmar
Date: 2011-07-29 08:42:45 +0200 (Fri, 29 Jul 2011)
New Revision: 6381
Modified:
pve-manager/pve2/ChangeLog
pve-manager/pve2/www/manager/storage/IScsiEdit.js
pve-manager/pve2/www/manager/storage/LVMEdit.js
pve-manager/pve2/www/manager/storage/NFSEdit.js
Log:
* www/manager/storage/IScsiEdit.js: add NodeSelector
* www/manager/storage/NFSEdit.js: add NodeSelector
* www/manager/storage/LVMEdit.js: add NodeSelector
Modified: pve-manager/pve2/ChangeLog
===================================================================
--- pve-manager/pve2/ChangeLog 2011-07-29 05:42:35 UTC (rev 6380)
+++ pve-manager/pve2/ChangeLog 2011-07-29 06:42:45 UTC (rev 6381)
@@ -1,3 +1,11 @@
+2011-07-29 Proxmox Support Team <support at proxmox.com>
+
+ * www/manager/storage/IScsiEdit.js: add NodeSelector
+
+ * www/manager/storage/NFSEdit.js: add NodeSelector
+
+ * www/manager/storage/LVMEdit.js: add NodeSelector
+
2011-07-28 Proxmox Support Team <support at proxmox.com>
* lib/PVE/API2/Cluster.pm: use PVE::Storage::storage_check_enabled()
Modified: pve-manager/pve2/www/manager/storage/IScsiEdit.js
===================================================================
--- pve-manager/pve2/www/manager/storage/IScsiEdit.js 2011-07-29 05:42:35 UTC (rev 6380)
+++ pve-manager/pve2/www/manager/storage/IScsiEdit.js 2011-07-29 06:42:45 UTC (rev 6381)
@@ -119,6 +119,14 @@
me.column2 = [
{
+ xtype: 'PVE.form.NodeSelector',
+ name: 'nodes',
+ fieldLabel: 'Nodes',
+ emptyText: 'All (no restrictions)',
+ multiSelect: true,
+ autoSelect: false
+ },
+ {
xtype: 'pvecheckbox',
name: 'enable',
checked: true,
@@ -175,6 +183,9 @@
if (values.storage === 'local') {
values.content = ctypes.split(',');
}
+ if (values.nodes) {
+ values.nodes = values.nodes.split(',');
+ }
values.enable = values.disable ? 0 : 1;
values.luns = (values.content === 'images') ? true : false;
Modified: pve-manager/pve2/www/manager/storage/LVMEdit.js
===================================================================
--- pve-manager/pve2/www/manager/storage/LVMEdit.js 2011-07-29 05:42:35 UTC (rev 6380)
+++ pve-manager/pve2/www/manager/storage/LVMEdit.js 2011-07-29 06:42:45 UTC (rev 6381)
@@ -177,6 +177,14 @@
me.column2 = [
{
+ xtype: 'PVE.form.NodeSelector',
+ name: 'nodes',
+ fieldLabel: 'Nodes',
+ emptyText: 'All (no restrictions)',
+ multiSelect: true,
+ autoSelect: false
+ },
+ {
xtype: 'pvecheckbox',
name: 'enable',
checked: true,
@@ -228,6 +236,9 @@
me.load({
success: function(response, options) {
var values = response.result.data;
+ if (values.nodes) {
+ values.nodes = values.nodes.split(',');
+ }
values.enable = values.disable ? 0 : 1;
ipanel.setValues(values);
}
Modified: pve-manager/pve2/www/manager/storage/NFSEdit.js
===================================================================
--- pve-manager/pve2/www/manager/storage/NFSEdit.js 2011-07-29 05:42:35 UTC (rev 6380)
+++ pve-manager/pve2/www/manager/storage/NFSEdit.js 2011-07-29 06:42:45 UTC (rev 6381)
@@ -124,6 +124,14 @@
me.column2 = [
{
+ xtype: 'PVE.form.NodeSelector',
+ name: 'nodes',
+ fieldLabel: 'Nodes',
+ emptyText: 'All (no restrictions)',
+ multiSelect: true,
+ autoSelect: false
+ },
+ {
xtype: 'pvecheckbox',
name: 'enable',
checked: true,
@@ -174,6 +182,9 @@
if (values.storage === 'local') {
values.content = ctypes.split(',');
}
+ if (values.nodes) {
+ values.nodes = values.nodes.split(',');
+ }
values.enable = values.disable ? 0 : 1;
ipanel.setValues(values);
}
More information about the pve-devel
mailing list