Commit 4031f444 authored by Dietmar Maurer's avatar Dietmar Maurer

fix compression selector

parent 291b7860
pve-manager (2.0-22) unstable; urgency=low
* fix lint errors
* fix compression selector
-- Proxmox Support Team <support@proxmox.com> Fri, 10 Feb 2012 12:26:39 +0100
pve-manager (2.0-21) unstable; urgency=low
* fix postinst script (write correct /root/.forward)
......
......@@ -2,7 +2,7 @@ RELEASE=2.0
VERSION=2.0
PACKAGE=pve-manager
PACKAGERELEASE=21
PACKAGERELEASE=22
BINDIR=${DESTDIR}/usr/bin
PERLLIBDIR=${DESTDIR}/usr/share/perl5
......
......@@ -97,7 +97,7 @@ Ext.define('PVE.form.ComboGrid', {
if (me.enableAfterLoad) {
delete me.enableAfterLoad;
me.setDisabled(false);
me.setDisabled(false);
}
var def = me.getValue();
......
......@@ -6,20 +6,9 @@ Ext.define('PVE.form.CompressionSelector', {
var me = this;
me.data = [
['', 'Default (qemu64)'],
['486', '486'],
['athlon', 'athlon'],
['core2duo', 'core2duo'],
['coreduo', 'coreduo'],
['kvm32', 'kvm32'],
['kvm64', 'kvm64'],
['pentium', 'pentium'],
['pentium2', 'pentium2'],
['pentium3', 'pentium3'],
['phenom', 'phenom'],
['qemu32', 'qemu32'],
['qemu64', 'qemu64'],
['host', 'host']
['', 'none'],
['lzo', 'LZO (fast)'],
['gzip', 'GZIP (good)']
];
me.callParent();
......
......@@ -77,7 +77,7 @@ Ext.define('PVE.qemu.CreateWizard', {
name: 'pool',
value: '',
allowBlank: true
},
}
],
onGetValues: function(values) {
if (!values.name) {
......
......@@ -43,10 +43,9 @@ Ext.define('PVE.window.Backup', {
name: 'mode'
},
{
xtype: 'pvecheckbox',
xtype: 'pveCompressionSelector',
name: 'compress',
uncheckedValue: 0,
checked: true,
value: 'lzo',
fieldLabel: 'Compress'
}
]
......@@ -59,16 +58,18 @@ Ext.define('PVE.window.Backup', {
handler: function(){
var storage = storagesel.getValue();
var values = form.getValues();
console.dir(me.vmid, me.nodename, values.online);
PVE.Utils.API2Request({
url: '/nodes/' + me.nodename + '/vzdump',
params: {
var params = {
storage: storage,
vmid: me.vmid,
compress: values.compress,
mode: values.mode
},
};
if (values.compress) {
params.compress = values.compress;
}
PVE.Utils.API2Request({
url: '/nodes/' + me.nodename + '/vzdump',
params: params,
method: 'POST',
failure: function (response, opts) {
Ext.Msg.alert('Error',response.htmlStatus);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment