DataObjects/Core_notify_recur.php
[Pman.Core] / Pman.js
diff --git a/Pman.js b/Pman.js
index c9b8a43..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%;'  });
@@ -555,7 +559,7 @@ Pman = new Roo.Document(
         }
         var reader = tab.grid.reader || tab.grid.ds.reader;
         for(var i = 0; i < s.length; i++) {
-            r.push(reader.getId(s[i]));
+            r.push(reader.getId(s[i].json));
         }
     
         Roo.MessageBox.confirm("Confirm", "Are you sure you want to delete that?",
@@ -810,7 +814,7 @@ Pman = new Roo.Document(
         
         
         if (obj.parent === Pman || obj.parent  == 'Pman') {
-            Roo.log("PARENT OF : " + obj.name + " replacing with fake");
+            // Roo.log("PARENT OF : " + obj.name + " replacing with fake");
             obj.parent = Pman.fakeRoot;
         }
         
@@ -846,7 +850,6 @@ Pman = new Roo.Document(
     
     xbeforebuild : function(obj)
     {
-        Roo.log(obj);
         if (typeof(obj.part) != 'undefined')  {
            
             if (!obj.part[1].length) {