From: Alan Knowles Date: Wed, 17 Aug 2011 01:27:36 +0000 (+0800) Subject: Pman.js X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=55d1462e9e98093c4c9578c157e225027f6fe126;p=Pman.Core Pman.js --- diff --git a/Pman.js b/Pman.js index 8a2c69dd..2bc954b4 100644 --- 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'); }