DataObjects/Core_event_audit.php
[Pman.Core] / Pman.js
diff --git a/Pman.js b/Pman.js
index f56ab7a..7d9552c 100644 (file)
--- a/Pman.js
+++ b/Pman.js
@@ -276,17 +276,19 @@ Pman = new Roo.Document(
             // since we always add it.. just chop of last item
             this.subMenuItems.pop(); 
             
-            this.pulldownMenu = lotb.add(
+            var btn = new Roo.Toolbar.Button( 
                 {
-                     
                     text: "Add New Item",
                     cls: 'x-btn-text-icon',
                     icon: Roo.rootURL + 'images/default/dd/drop-add.gif',
                     menu : {
                         items : this.subMenuItems
                     }     
-                } ,'-'
+                }
             );
+            this.pulldownMenu = btn.menu;
+            lotb.add(btn, '-');
+            
         }
        
         lotb.add(
@@ -789,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 });