mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-15 09:46:16 +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',
|
||||
displayField: 'id',
|
||||
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;
|
||||
|
||||
if ( id == 'cod' && direction == 1 )
|
||||
{
|
||||
if ( id == 'cod' && direction == 1 ){
|
||||
var v = Ext.getCmp('configureOrDownload').getValue().getRawValue();
|
||||
var df = false;
|
||||
if ( v == 'localInstall' ){
|
||||
next = 1;
|
||||
} else if ( v == 'remoteInstall' ){
|
||||
next = 2;
|
||||
df = true;
|
||||
}
|
||||
Ext.getCmp('move-prev').setDisabled(false);
|
||||
Ext.getCmp('move-next').setDisabled(true);
|
||||
Ext.getCmp('finish').setDisabled(false);
|
||||
Ext.getCmp('finish').setDisabled(df);
|
||||
}
|
||||
else if (direction == -1 && (id == 'localInstall' || id == 'remoteInstall')) {
|
||||
next = 0;
|
||||
|
||||
Reference in New Issue
Block a user