Skip to content

Commit

Permalink
Merge pull request mitchellsimoens#1 from semiaddict/master
Browse files Browse the repository at this point in the history
Allow title config on non-tabbed containers
  • Loading branch information
Mitchell Simoens committed Dec 29, 2011
2 parents 70fa1fc + 961a218 commit 026de71
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Ux/locale/override/st/Container.js
Expand Up @@ -12,8 +12,8 @@ Ext.define('Ux.locale.override.st.Container', {
title = locales.title,
manager = me.locale,
defaultText = '';

if (title && tab) {
if (title) {
if (Ext.isObject(title)) {
defaultText = title.defaultText;
title = title.key;
Expand All @@ -26,7 +26,10 @@ Ext.define('Ux.locale.override.st.Container', {
* Would like a setTitle on a container to do this
*/
me.title = title;
tab.setTitle(title);

if(tab){
tab.setTitle(title);
}
}
}

Expand Down

0 comments on commit 026de71

Please sign in to comment.