DataObjects/Core_event_audit.php
[Pman.Core] / Pman.js
diff --git a/Pman.js b/Pman.js
index 08b3b38..7d9552c 100644 (file)
--- a/Pman.js
+++ b/Pman.js
@@ -276,9 +276,8 @@ Pman = new Roo.Document(
             // since we always add it.. just chop of last item
             this.subMenuItems.pop(); 
             
-            this.pulldownMenu = new Roo.Toolbar.Button( 
+            var btn = new Roo.Toolbar.Button( 
                 {
-                     
                     text: "Add New Item",
                     cls: 'x-btn-text-icon',
                     icon: Roo.rootURL + 'images/default/dd/drop-add.gif',
@@ -287,7 +286,8 @@ Pman = new Roo.Document(
                     }     
                 }
             );
-            lotb.add(this.pulldownMenu, '0');
+            this.pulldownMenu = btn.menu;
+            lotb.add(btn, '-');
             
         }
        
@@ -791,7 +791,9 @@ Pman = new Roo.Document(
             }
             // this is an error condition - the parent does not exist..
             // technically it should not happen..
+            console.log("Parent is missing");
             console.log(obj);
+            return;
         }
         if (!obj.parent.modules) {
             obj.parent.modules = new Roo.util.MixedCollection(false, function(o) { return o.modKey });