Error after updating to latest version.
Posted: 21 Nov 2017, 07:35
Old: Phoca Gallery — 4.0.0 beta, Phoca Gallery Plugin — 3.0.1
New: 4.3.6, 4.3.4
Error happens in frontend, when trying to display any gallery, regardless of settings.
modal.css is loaded, modal.js isn't.
photo.html.48
New: 4.3.6, 4.3.4
Error happens in frontend, when trying to display any gallery, regardless of settings.
modal.css is loaded, modal.js isn't.
Code: Select all
photo.html:48 Uncaught ReferenceError: SqueezeBox is not defined
at HTMLDocument.<anonymous> (photo.html:48)
at fire (jquery-1.9.1.js:1037)
at Object.fireWith [as resolveWith] (jquery-1.9.1.js:1148)
at Function.ready (jquery-1.9.1.js:433)
at HTMLDocument.completed (jquery-1.9.1.js:103)Code: Select all
<script type="text/javascript">
jQuery(function($) {
SqueezeBox.initialize({});
SqueezeBox.assign($('a.pg-modal-button').get(), {
parse: 'rel'
});
});
window.jModalClose = function () {
SqueezeBox.close();
};
// Add extra modal close functionality for tinyMCE-based editors
document.onreadystatechange = function () {
if (document.readyState == 'interactive' && typeof tinyMCE != 'undefined' && tinyMCE)
{
if (typeof window.jModalClose_no_tinyMCE === 'undefined')
{
window.jModalClose_no_tinyMCE = typeof(jModalClose) == 'function' ? jModalClose : false;
jModalClose = function () {
if (window.jModalClose_no_tinyMCE) window.jModalClose_no_tinyMCE.apply(this, arguments);
tinyMCE.activeEditor.windowManager.close();
};
}
if (typeof window.SqueezeBoxClose_no_tinyMCE === 'undefined')
{
if (typeof(SqueezeBox) == 'undefined') SqueezeBox = {};
window.SqueezeBoxClose_no_tinyMCE = typeof(SqueezeBox.close) == 'function' ? SqueezeBox.close : false;
SqueezeBox.close = function () {
if (window.SqueezeBoxClose_no_tinyMCE) window.SqueezeBoxClose_no_tinyMCE.apply(this, arguments);
tinyMCE.activeEditor.windowManager.close();
};
}
}
};
</script>