fix some js warnings

This commit is contained in:
Sebastian Sdorra
2013-05-25 10:45:48 +02:00
parent 430fff76a4
commit 74b717cfc2
2 changed files with 13 additions and 13 deletions

View File

@@ -62,7 +62,7 @@ Sonia.hg.ConfigWizard = Ext.extend(Ext.Window,{
} }
} }
}] }]
} };
Ext.apply(this, Ext.apply(this.initialConfig, config)); Ext.apply(this, Ext.apply(this.initialConfig, config));
Sonia.hg.ConfigWizard.superclass.initComponent.apply(this, arguments); Sonia.hg.ConfigWizard.superclass.initComponent.apply(this, arguments);
@@ -292,7 +292,7 @@ Sonia.hg.ConfigWizardPanel = Ext.extend(Ext.Panel,{
} }
}] }]
}] }]
} };
Ext.apply(this, Ext.apply(this.initialConfig, config)); Ext.apply(this, Ext.apply(this.initialConfig, config));
Sonia.hg.ConfigWizardPanel.superclass.initComponent.apply(this, arguments); Sonia.hg.ConfigWizardPanel.superclass.initComponent.apply(this, arguments);
@@ -315,12 +315,12 @@ 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; 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; df = true;
} }
@@ -328,7 +328,7 @@ Sonia.hg.ConfigWizardPanel = Ext.extend(Ext.Panel,{
Ext.getCmp('move-next').setDisabled(true); Ext.getCmp('move-next').setDisabled(true);
Ext.getCmp('finish').setDisabled(df); 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;
Ext.getCmp('move-prev').setDisabled(true); Ext.getCmp('move-prev').setDisabled(true);
Ext.getCmp('move-next').setDisabled(false); Ext.getCmp('move-next').setDisabled(false);
@@ -342,9 +342,9 @@ Sonia.hg.ConfigWizardPanel = Ext.extend(Ext.Panel,{
applyChanges: function(){ applyChanges: function(){
var v = Ext.getCmp('configureOrDownload').getValue().getRawValue(); var v = Ext.getCmp('configureOrDownload').getValue().getRawValue();
if ( v == 'localInstall' ){ if ( v === 'localInstall' ){
this.applyLocalConfiguration(); this.applyLocalConfiguration();
} else if ( v == 'remoteInstall' ){ } else if ( v === 'remoteInstall' ){
this.applyRemoteConfiguration(); this.applyRemoteConfiguration();
} }
}, },
@@ -427,7 +427,7 @@ Ext.reg('hgConfigWizardPanel', Sonia.hg.ConfigWizardPanel);
// i18n // i18n
if ( i18n != null && i18n.country == 'de' ){ if ( i18n && i18n.country === 'de' ){
Ext.override(Sonia.hg.ConfigWizardPanel, { Ext.override(Sonia.hg.ConfigWizardPanel, {

View File

@@ -121,7 +121,7 @@ Sonia.hg.ConfigPanel = Ext.extend(Sonia.config.ConfigForm, {
}); });
wizard.on('finish', function(config){ wizard.on('finish', function(config){
var self = Ext.getCmp('hgConfigForm'); var self = Ext.getCmp('hgConfigForm');
if ( config != null ){ if ( config ){
if (debug){ if (debug){
console.debug( 'load config from wizard and submit to server' ); console.debug( 'load config from wizard and submit to server' );
} }
@@ -137,7 +137,7 @@ Sonia.hg.ConfigPanel = Ext.extend(Sonia.config.ConfigForm, {
}, },
scope: this scope: this
}] }]
} };
Ext.apply(this, Ext.apply(this.initialConfig, config)); Ext.apply(this, Ext.apply(this.initialConfig, config));
Sonia.hg.ConfigPanel.superclass.initComponent.apply(this, arguments); Sonia.hg.ConfigPanel.superclass.initComponent.apply(this, arguments);
@@ -193,7 +193,7 @@ Ext.reg("hgConfigPanel", Sonia.hg.ConfigPanel);
// i18n // i18n
if ( i18n != null && i18n.country == 'de' ){ if ( i18n && i18n.country === 'de' ){
Ext.override(Sonia.hg.ConfigPanel, { Ext.override(Sonia.hg.ConfigPanel, {
@@ -251,7 +251,7 @@ Sonia.repository.typeIcons['hg'] = 'resources/images/icons/16x16/mercurial.png';
Ext.override(Sonia.repository.ChangesetViewerGrid, { Ext.override(Sonia.repository.ChangesetViewerGrid, {
isMercurialRepository: function(){ isMercurialRepository: function(){
return this.repository.type == 'hg'; return this.repository.type === 'hg';
}, },
getChangesetId: function(id, record){ getChangesetId: function(id, record){