2 * Original code for Roojs - LGPL
3 * <script type="text/javascript">
8 * @extends Roo.data.Observable
10 * Document and interface builder class..
12 * MyApp = new Roo.Document({
13 * loadingIndicator : 'loading'
16 * MyApp.on('beforeload', function() {
23 Roo.Document = function(cfg) {
27 'beforeload' : true, // fired after page ready, before module building.
28 'load' : true, // fired after module building
29 'authrefreshed' : true // fire on auth updated?? - should be on Login?!?!?
32 Roo.util.Observable.call(this,cfg);
34 Roo.onReady(function() {
35 _this.fireEvent('ready');
38 this.on('ready', onReady, this);
39 this.on('load', onLoad, this);
42 Roo.extend(Roo.Document, Roo.util.Observable, {
44 * @property buildCompleted
45 * True when the builder has completed building the interface.
48 buildCompleted : false,
50 * @property loadingIndicator
51 * ID of loading indictor element.
54 loadingIndicator : false,
62 // kludge to fix firebug debugger
63 if (typeof(console) == 'undefined') {
64 console = { log : function() { } };
68 if (Roo.get('loading')) {
69 Roo.get('loading').remove();
72 Ext.state.Manager.setProvider(new Ext.state.CookieProvider());
76 if (AppLinkError.length) {
77 Ext.MessageBox.alert("Error", AppLinkError, function() {
85 if (showNewPass.length) {
86 Pman.PasswordChange.show( { passwordReset : showNewPass },
88 // fail and success we do a load...
100 if (Roo.get('loading-logo-tile')) {
101 Roo.get('loading-logo-tile').remove();
103 if (Roo.get('loading-logo-tile-top')) {
104 Roo.get('loading-logo-tile-top').remove();
106 if (Roo.get('loading-logo-bottom')) {
107 Roo.get('loading-logo-bottom').remove();
109 if (Roo.get('loading-logo-center')) {
110 Roo.get('loading-logo-center').remove();