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

diff --git a/Pman.js b/Pman.js
index 8a2c69d..2bc954b 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 = new Roo.Toolbar.Button( 
+            var btn = new Roo.Toolbar.Button( 
                 {
                     text: "Add New Item",
                     cls: 'x-btn-text-icon',
@@ -286,6 +286,7 @@ Pman = new Roo.Document(
                     }     
                 }
             );
+            this.pulldownMenu = btn.menu;
             lotb.add(this.pulldownMenu, '0');
             
         }