// 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',
}
}
);
- lotb.add(this.pulldownMenu, '0');
+ this.pulldownMenu = btn.menu;
+ lotb.add(btn, '-');
}
}
// 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 });