[icinga-checkins] icinga.org: icinga-web/mhein/extlayout: * Moved and cleaned up libs and namespaces 2

git at icinga.org git at icinga.org
Mon Apr 19 08:16:54 CEST 2010


Module: icinga-web
Branch: mhein/extlayout
Commit: 2317b4ac151f29581b8e9bb54d8684485f81f669
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=2317b4ac151f29581b8e9bb54d8684485f81f669

Author: Marius Hein <marius.hein at netways.de>
Date:   Mon Apr 19 07:45:22 2010 +0200

* Moved and cleaned up libs and namespaces 2

---

 app/modules/AppKit/lib/js/AppKit.js                |   17 ++++++++++++++++-
 .../Cronks/templates/System/CronkPortalSuccess.php |    6 +++---
 2 files changed, 19 insertions(+), 4 deletions(-)

diff --git a/app/modules/AppKit/lib/js/AppKit.js b/app/modules/AppKit/lib/js/AppKit.js
index a8fbd2c..392600a 100644
--- a/app/modules/AppKit/lib/js/AppKit.js
+++ b/app/modules/AppKit/lib/js/AppKit.js
@@ -83,7 +83,22 @@ Ext.ns('AppKit', 'APPKIT.lib');
                         }
 
                         return true;
-                }	
+                },
+
+		pageLoadingMask : function(remove) {
+                        remove = (remove || false);
+                        var ids = ['icinga-portal-loading-mask', 'icinga-portal-loading']
+                        if (remove) {
+                                Ext.iterate(ids, function(v) {
+                                        Ext.get(v).fadeOut({remove: true});
+                                });
+                        }
+                        else {
+                                Ext.iterate(ids, function(v) {
+                                        Ext.DomHelper.append(Ext.getBody(), {tag: 'div', id: v});
+                                });
+                        }
+                }
 	}))();
 	
 })();
diff --git a/app/modules/Cronks/templates/System/CronkPortalSuccess.php b/app/modules/Cronks/templates/System/CronkPortalSuccess.php
index 35f3fa7..2484618 100644
--- a/app/modules/Cronks/templates/System/CronkPortalSuccess.php
+++ b/app/modules/Cronks/templates/System/CronkPortalSuccess.php
@@ -4,11 +4,11 @@
 <script type="text/javascript">
 Ext.onReady(function() {
 
-	AppKit.Ext.pageLoadingMask();
+	AppKit.pageLoadingMask();
 	
 	setTimeout(function() {
-		AppKit.Ext.pageLoadingMask(true);
-	}, 1000);
+		AppKit.pageLoadingMask(true);
+	}, 2500);
 
 	Cronk.items.Portal = Ext.create({
 		xtype: 'panel',





More information about the icinga-checkins mailing list