Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The latest vision of colorbox plugin not compatible with drupal Jquery.
There is a call to on function on line 820 of the Plugin which might not work on jqeury older than 1.7
Version tested colorbox plugin 1.3.26
Best Regards
Shameem
Comments
Comment #1
dolly nyc CreditAttribution: dolly nyc commentedPer the release notes, update the colorbox plug-in to version 1.3.21 or later (current as of this morning is 1.3.26)
http://www.jacklmoore.com/colorbox
Comment #2
hvalentim CreditAttribution: hvalentim commentedWell, using 1.3.26 somehow images do not load for me (they stay loading forever).
Comment #3
shameemkm CreditAttribution: shameemkm commentedJust change on to bind on line number 820 in jqeury.colorbox.js and it should work
on('load' should be changed to bind('load'
Comment #4
dolly nyc CreditAttribution: dolly nyc commentedJust to clarify: original post was referring to v 1.3.26 (not 1.3.6)
@shameemkm -- I see you posted on github too. Now the latest version seems to be 1.3.27. Have you tried that version?
Comment #5
hvalentim CreditAttribution: hvalentim commentedThanks! That does the trick.
Do you know how to modify the minified version as well? :)
Comment #6
hvalentim CreditAttribution: hvalentim commented1.3.27. seems to suffer from the same problem that the unmodified 1.3.26. Just tested.
Comment #7
shameemkm CreditAttribution: shameemkm commentedI have updated the error report. to show it as 1.3.26. I can still see the on function on the latest version that is 1.3.27 on line number 832 so I suppose it would still give the error. for older versions of jquery which does not support the function.
Comment #8
shameemkm CreditAttribution: shameemkm commented@hvalentim you can search for .on("load",function() and change on to bind.
Comment #9
hvalentim CreditAttribution: hvalentim commentedYes. If I change line 832 of 1.3.27 (non minified version) to the bellow it will work for me.
.bind('load', function () {
Comment #10
hvalentim CreditAttribution: hvalentim commentedThanks again for pointing me in the right direction.
In the minified version that should be in column 8585 of line 7 (v. 1.3.27).
Comment #11
frjo CreditAttribution: frjo commentedSeems to be fixed in v1.3.28 of the Colorbox plugin.
https://github.com/jackmoore/colorbox/commit/64a86b97ea27c184dabe3102bfa...
Comment #12
sgriffin CreditAttribution: sgriffin commentedThere's no errors for 1.3.28 at least, but it doesn't work with JQ 1.7. Images open in self window.
Comment #13
shameemkm CreditAttribution: shameemkm commentedGot message from color box that the error has been corrected. the Function was supposed to be one and not on it seems to be corrected in the latest update.
Comment #14
Slown CreditAttribution: Slown commentedHi,
for me, there's no errors for 1.3.28 at least, but it doesn't work with jQuery 1.5.2 Images open in self window.
Comment #15
grozozo CreditAttribution: grozozo commentedI will create a new topic since it's not the same issue.
Comment #16
frjo CreditAttribution: frjo commentedComment #17.0
(not verified) CreditAttribution: commentedchanged the version number