getAutoCreate : function(){
var cfg = {
- cls : 'popover roo-dynamic shadow roo-popover',
+ cls : 'popover roo-dynamic shadow roo-popover' + (this.modal ? '-modal' : ''),
style: 'display:block',
cn : [
{
initEvents : function()
{
-
- Roo.bootstrap.Popover.register(this);
+
+ if (!this.modal) {
+ Roo.bootstrap.Popover.register(this);
+ }
this.el.select('.popover-title',true).setVisibilityMode(Roo.Element.DISPLAY);