.fancybox-container {
z-index: 100000; /** Divi is 99999 */
}
.admin-bar .fancybox-container {
margin-top: 32px;
}
if ( window.Fancybox ){
Fancybox.bind(".gravityview-fancybox", {"animationEffect":"fade","toolbar":true,"closeExisting":true,"arrows":true,"buttons":["thumbs","close"],"i18n":{"en":{"CLOSE":"Close","NEXT":"Next","PREV":"Previous","ERROR":"The requested content cannot be loaded. Please try again later.","PLAY_START":"Start slideshow","PLAY_STOP":"Pause slideshow","FULL_SCREEN":"Full screen","THUMBS":"Thumbnails","DOWNLOAD":"Download","SHARE":"Share","ZOOM":"Zoom"}}});
}
if (window.gvDTglobals) {
for (var index in gvDTglobals) {
gvDTglobals[index].footerCallback = function () {
var api = this.api();
var $footer = jQuery(api.table().footer());
// If using clientSide, fetch directly. Otherwise, get from the JSON response.
var footerCalculation = (typeof api.ajax.json() !== 'undefined') ? api.ajax.json()['footerCalculation'] : api.init()[ 'footerCalculation' ];
if ( !footerCalculation) {
return;
}
if ($footer.find('.footer-calculation').length) {
$footer.find('.footer-calculation').replaceWith(footerCalculation);
} else {
$footer.append( footerCalculation);
}
jQuery(api.table().footer()).html($footer.html());
};
}
}