enable tab scrolling for repository setting tabs

This commit is contained in:
Sebastian Sdorra
2013-02-17 15:20:12 +01:00
parent 97dcbae715
commit e4a5caa87d

View File

@@ -170,7 +170,7 @@ Sonia.repository.Panel = Ext.extend(Sonia.rest.Panel, {
xtype: 'label',
text: this.displayArchivedRepositoriesText,
cls: 'ytb-text'
})
});
}
var config = {
@@ -194,6 +194,7 @@ Sonia.repository.Panel = Ext.extend(Sonia.rest.Panel, {
split: true,
border: true,
region: 'south',
enableTabScroll: true,
items: [{
bodyCssClass: 'x-panel-mc',
title: this.titleText,
@@ -201,7 +202,7 @@ Sonia.repository.Panel = Ext.extend(Sonia.rest.Panel, {
html: this.emptyText
}]
}]
}
};
Ext.apply(this, Ext.apply(this.initialConfig, config));
Sonia.repository.Panel.superclass.initComponent.apply(this, arguments);
@@ -259,7 +260,7 @@ Sonia.repository.Panel = Ext.extend(Sonia.rest.Panel, {
buttons: Ext.MessageBox.OKCANCEL,
icon: Ext.MessageBox.QUESTION,
fn: function(result){
if ( result == 'ok' ){
if ( result === 'ok' ){
if ( debug ){
console.debug('call repository repository action '+ method + ' on ' + url );