set localeMonths early to avoid error in call order
This commit is contained in:
parent
081f5ad4bd
commit
03d3e8ab8e
1 changed files with 6 additions and 5 deletions
|
|
@ -25,6 +25,12 @@ WebGUI.Admin = function(cfg){
|
|||
this.cfg.adminBarId = "adminBar";
|
||||
}
|
||||
|
||||
// TODO: This should be i18n
|
||||
this.localeMonths = [
|
||||
'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August',
|
||||
'September', 'October', 'November', 'December'
|
||||
];
|
||||
|
||||
// Custom events
|
||||
this.afterNavigate = new YAHOO.util.CustomEvent( "afterNavigate", this );
|
||||
|
||||
|
|
@ -32,11 +38,6 @@ WebGUI.Admin = function(cfg){
|
|||
var self = this;
|
||||
// Initialize these things AFTER the i18n is fetched
|
||||
var _init = function () {
|
||||
// TODO: This should be i18n
|
||||
self.localeMonths = [
|
||||
'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August',
|
||||
'September', 'October', 'November', 'December'
|
||||
];
|
||||
self.tabBar = new YAHOO.widget.TabView( self.cfg.tabBarId );
|
||||
// Keep track of View and Tree tabs
|
||||
self.tabBar.getTab(0).addListener('click',self.afterShowViewTab,self,true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue