diff --git a/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.infopanel.js b/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.infopanel.js index 01f4bdffa9..27e950f2d8 100644 --- a/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.infopanel.js +++ b/scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.infopanel.js @@ -47,7 +47,7 @@ Sonia.repository.InfoPanel = Ext.extend(Ext.Panel, { initComponent: function(){ var contact = ''; - if ( this.item.contact != null ){ + if ( this.item.contact !== null ){ contact = String.format(this.mailTemplate, this.item.contact); } @@ -92,7 +92,7 @@ Sonia.repository.InfoPanel = Ext.extend(Ext.Panel, { style: 'font-size: 12px' }, items: items - } + }; this.modifyDefaultConfig(config); @@ -106,7 +106,7 @@ Sonia.repository.InfoPanel = Ext.extend(Ext.Panel, { getRepositoryUrlWithUsername: function(){ var uri = Sonia.repository.createUrlFromObject(this.item); - if ( state.user.name != 'anonymous' ){ + if ( state.user.name !== 'anonymous' ){ var index = uri.indexOf("://"); if ( index > 0 ){ index += 3; @@ -120,7 +120,7 @@ Sonia.repository.InfoPanel = Ext.extend(Ext.Panel, { var text = null; for ( var i=0; i