jQuery missing
-
hi, I get a jQuery error in the console –?“ReferenceError: Can’t find variable: jQuery”
…it points to a script added by Gallery Custom Links, included below. Might there be a bug in dependency loading or do you think something is broken in the wordpress setup outside of this plugin?
// Used by Gallery Custom Links to handle tenacious Lightboxes
jQuery(document).ready(function() {function mgclInit() {
if (jQuery.fn.off) {
jQuery(‘.no-lightbox, .no-lightbox img’).off(‘click’); // jQuery 1.7+
}
else {
jQuery(‘.no-lightbox, .no-lightbox img’).unbind(‘click’); // < jQuery 1.7
}
jQuery(‘a.no-lightbox’).click(mgclOnClick);if (jQuery.fn.off) {
jQuery(‘a.set-target’).off(‘click’); // jQuery 1.7+
}
else {
jQuery(‘a.set-target’).unbind(‘click’); // < jQuery 1.7
}
jQuery(‘a.set-target’).click(mgclOnClick);
}function mgclOnClick() {
if (!this.target || this.target == ” || this.target == ‘_self’)
window.location = this.href;
else
window.open(this.href, this.target);
return false;
}// From WP Gallery Custom Links
// Reduce the number of conflicting lightboxes
function mgclAddLoadEvent(func) {
var oldOnload = window.onload;
if (typeof window.onload != ‘function’) {
window.onload = func;
} else {
window.onload = function() {
oldOnload();
func();
}
}
}mgclAddLoadEvent(mgclInit);
mgclInit();});
</script>The page I need help with: [log in to see the link]
- The topic ‘jQuery missing’ is closed to new replies.