mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-15 17:56:17 +01:00
improve handling of the finish button
This commit is contained in:
@@ -267,7 +267,12 @@ Sonia.hg.ConfigWizardPanel = Ext.extend(Ext.Panel,{
|
|||||||
valueField: 'id',
|
valueField: 'id',
|
||||||
displayField: 'id',
|
displayField: 'id',
|
||||||
allowBlank: false,
|
allowBlank: false,
|
||||||
tpl: this.packageTemplate
|
tpl: this.packageTemplate,
|
||||||
|
listeners: {
|
||||||
|
select: function(){
|
||||||
|
Ext.getCmp('finish').setDisabled(false);
|
||||||
|
}
|
||||||
|
}
|
||||||
}]
|
}]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
@@ -293,17 +298,18 @@ Sonia.hg.ConfigWizardPanel = Ext.extend(Ext.Panel,{
|
|||||||
|
|
||||||
var next = -1;
|
var next = -1;
|
||||||
|
|
||||||
if ( id == 'cod' && direction == 1 )
|
if ( id == 'cod' && direction == 1 ){
|
||||||
{
|
|
||||||
var v = Ext.getCmp('configureOrDownload').getValue().getRawValue();
|
var v = Ext.getCmp('configureOrDownload').getValue().getRawValue();
|
||||||
|
var df = false;
|
||||||
if ( v == 'localInstall' ){
|
if ( v == 'localInstall' ){
|
||||||
next = 1;
|
next = 1;
|
||||||
} else if ( v == 'remoteInstall' ){
|
} else if ( v == 'remoteInstall' ){
|
||||||
next = 2;
|
next = 2;
|
||||||
|
df = true;
|
||||||
}
|
}
|
||||||
Ext.getCmp('move-prev').setDisabled(false);
|
Ext.getCmp('move-prev').setDisabled(false);
|
||||||
Ext.getCmp('move-next').setDisabled(true);
|
Ext.getCmp('move-next').setDisabled(true);
|
||||||
Ext.getCmp('finish').setDisabled(false);
|
Ext.getCmp('finish').setDisabled(df);
|
||||||
}
|
}
|
||||||
else if (direction == -1 && (id == 'localInstall' || id == 'remoteInstall')) {
|
else if (direction == -1 && (id == 'localInstall' || id == 'remoteInstall')) {
|
||||||
next = 0;
|
next = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user