[pve-devel] [PATCH 9/9] add clonemodeselector
Alexandre Derumier
aderumier at odiso.com
Tue Dec 18 10:18:25 CET 2012
Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
www/manager/Makefile | 1 +
www/manager/form/CloneModeSelector.js | 15 +++++++++++++++
2 files changed, 16 insertions(+)
create mode 100644 www/manager/form/CloneModeSelector.js
diff --git a/www/manager/Makefile b/www/manager/Makefile
index 9e84ef1..e013fe1 100644
--- a/www/manager/Makefile
+++ b/www/manager/Makefile
@@ -49,6 +49,7 @@ JSSRC= \
form/DayOfWeekSelector.js \
form/BackupModeSelector.js \
form/ScsiHwSelector.js \
+ form/CloneModeSelector.js \
dc/Tasks.js \
dc/Log.js \
panel/StatusPanel.js \
diff --git a/www/manager/form/CloneModeSelector.js b/www/manager/form/CloneModeSelector.js
new file mode 100644
index 0000000..75f92d9
--- /dev/null
+++ b/www/manager/form/CloneModeSelector.js
@@ -0,0 +1,15 @@
+Ext.define('PVE.form.CloneModeSelector', {
+ extend: 'PVE.form.KVComboBox',
+ alias: ['widget.pveCloneModeSelector'],
+
+ initComponent: function() {
+ var me = this;
+
+ me.data = [
+ ['linked', 'Linked Clone'],
+ ['copy', 'Copy Clone']
+ ];
+
+ me.callParent();
+ }
+});
--
1.7.10.4
More information about the pve-devel
mailing list