602
602
// TODO: figure out how to have griddly in modal and still use body container. as it is, something about the modal
603
603
// blocks inputs in popovers from getting focus. so as a fallback I put it back in the bouding container,
604
604
// 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",
606
606
template : '<div class="popover griddly-filter-popover"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>' ,
607
607
content : function ( )
608
608
{
1211
1211
$ ( "[data-role=griddly]" ) . griddly ( ) ;
1212
1212
$ ( document ) . on ( "click" , "[data-role=griddly-button]" , GriddlyButton . handleClick ) ;
1213
1213
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;
1217
1217
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();
1221
1221
1222
- $tip . find ( '.popover-content' ) . children ( ) . detach ( ) ;
1222
+ // $tip.find('.popover-content').children().detach();
1223
1223
1224
- setContent . call ( this ) ;
1225
- } ;
1224
+ // setContent.call(this);
1225
+ // };
1226
1226
} ) ;
1227
1227
} ( window . jQuery ) ;
0 commit comments