DataObjects/Core_curr_rate.php
[Pman.Core] / Pman.js
diff --git a/Pman.js b/Pman.js
index c3df8c2..56703a4 100644 (file)
--- a/Pman.js
+++ b/Pman.js
@@ -1,20 +1,18 @@
-//<script type="text/javascript">
-
 /**
  * 
  *  
- *  CHANGES
- *  - gtranslate moved to Pman.GoogleTranslate
- * 
- * 
+ *  This is the main Pman class
+ *  - it's a bit too heavy at present - needs to go on a diet....
  */
  
+// translation..
 if (typeof(_T) == 'undefined') { _T={};}
+
 
 
 Roo.XComponent.on('register', function(e) {
-        if (typeof(Pman) != 'undefined') { return Pman.xregister(e); } return true;
+    if (typeof(Pman) != 'undefined') { return Pman.xregister(e); } return true;
 });
 Roo.XComponent.on('beforebuild', function(e) {
     if (typeof(Pman) != 'undefined') { return Pman.xbeforebuild(e); } return true;
@@ -34,7 +32,8 @@ Roo.XComponent.on('buildcomplete',
         }
     
     
-} );
+    }
+);
 
 //Roo.debug = 1;
   
@@ -236,6 +235,11 @@ Pman = new Roo.Document(
         
        
         //console.log( "t7:" + ((new Date())-stime));
+        if (!Pman.layout.getRegion('center').tabs) {
+                Roo.log("Error could not find tabs? - not adding toolbar?");
+                return;
+        }
+        
         var se = Pman.layout.getRegion('center').tabs.stripEl;
         var tbh = se.createChild( 
                 { tag: 'td', style: 'width:100%;'  });