Skip to content
Browse files

Merge pull request #15 from sc0ttman/master

Optional loading indicator
  • Loading branch information...
2 parents 5b49e5f + f9b9c65 commit e4fa3e28428f08e0a17687d21d3f56392ff3bc4f @mitchellsimoens mitchellsimoens committed Jun 18, 2012
Showing with 14 additions and 1 deletion.
  1. +14 −1 Ux/locale/Manager.js
View
15 Ux/locale/Manager.js
@@ -14,6 +14,7 @@ Ext.define('Ux.locale.Manager', {
_beforeLoad : Ext.emptyFn,
_language : 'en',
_loaded : true,
+ _loadingInd : true,
_locale : {},
_locales : [
{ abbr : 'en', text : 'English' },
@@ -158,7 +159,19 @@ Ext.define('Ux.locale.Manager', {
updateLocale : function(locale) {
this._language = locale;
- this.init();
+ if(me._loadingInd){
+ Ext.Viewport.setMasked({
+ xtype : 'loadmask',
+ indicator : true,
+ message : this.get('misc.loadingLocaleMsg')
+ });
+ }
+
+ this.init(function(mngr){
+ if(me._loadingInd){
+ Ext.Viewport.setMasked(false);
+ }
+ });
},
getLanguage : function() {

0 comments on commit e4fa3e2

Please sign in to comment.
Something went wrong with that request. Please try again.