602602 // TODO: figure out how to have griddly in modal and still use body container. as it is, something about the modal
603603 // blocks inputs in popovers from getting focus. so as a fallback I put it back in the bouding container,
604604 // which will work but means it will get cut off if griddly is scrollable
605- container : el , // this.$element.parents(".modal").length ? null : "body",
605+ container : null , // this.$element.parents(".modal").length ? null : "body",
606606 template : '<div class="popover griddly-filter-popover"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>' ,
607607 content : function ( )
608608 {
12111211 $ ( "[data-role=griddly]" ) . griddly ( ) ;
12121212 $ ( document ) . on ( "click" , "[data-role=griddly-button]" , GriddlyButton . handleClick ) ;
12131213
1214- // patch stupid bootstrap js so it doesn't .empty() our inline filter dropdowns
1215- // remove once bs fixes: https://github.com/twbs/bootstrap/pull/14244
1216- var setContent = $ . fn . popover . Constructor . prototype . setContent ;
1214+ // patch bootstrap js so it doesn't .empty() our inline filter dropdowns
1215+ // include if using bootstrap < 3.3.0
1216+ // var setContent = $.fn.popover.Constructor.prototype.setContent;
12171217
1218- $ . fn . popover . Constructor . prototype . setContent = function ( )
1219- {
1220- var $tip = this . tip ( ) ;
1218+ // $.fn.popover.Constructor.prototype.setContent = function ()
1219+ // {
1220+ // var $tip = this.tip();
12211221
1222- $tip . find ( '.popover-content' ) . children ( ) . detach ( ) ;
1222+ // $tip.find('.popover-content').children().detach();
12231223
1224- setContent . call ( this ) ;
1225- } ;
1224+ // setContent.call(this);
1225+ // };
12261226 } ) ;
12271227} ( window . jQuery ) ;
0 commit comments