Pman.js
authorAlan Knowles <alan@akbkhome.com>
Wed, 17 Aug 2011 01:26:49 +0000 (09:26 +0800)
committerAlan Knowles <alan@akbkhome.com>
Wed, 17 Aug 2011 01:26:49 +0000 (09:26 +0800)
Pman.js

diff --git a/Pman.js b/Pman.js
index f56ab7a..08b3b38 100644 (file)
--- a/Pman.js
+++ b/Pman.js
@@ -276,7 +276,7 @@ Pman = new Roo.Document(
             // since we always add it.. just chop of last item
             this.subMenuItems.pop(); 
             
-            this.pulldownMenu = lotb.add(
+            this.pulldownMenu = new Roo.Toolbar.Button( 
                 {
                      
                     text: "Add New Item",
@@ -285,8 +285,10 @@ Pman = new Roo.Document(
                     menu : {
                         items : this.subMenuItems
                     }     
-                } ,'-'
+                }
             );
+            lotb.add(this.pulldownMenu, '0');
+            
         }
        
         lotb.add(