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.
Is it happening? What needs to be done?
Comment | File | Size | Author |
---|---|---|---|
#7 | pngfix_d7_port_wrap_attrib_selectors_in_single_quotes-1003346-6.patch | 16.74 KB | klonos |
#2 | upgrade2d7-1003346-2.patch | 16.73 KB | mgifford |
#1 | pngfix.drupal_7_port_1003346_1.patch | 16.14 KB | slashrsm |
Comments
Comment #1
slashrsm CreditAttribution: slashrsm commentedThis works for me. Just some minor modifications were needed to make it work on D7.
I've added packed version of jQuery pngFix lib and enabled user to choose between packed/normal version in administration pages.
Also added some minor modifications to pass Coder review.
Comment #2
mgiffordI just re-rolled the patch against git. Hoping this helps get out a d7 version of this module.
Comment #3
joeyabbs CreditAttribution: joeyabbs commentedsubscribing
Comment #4
joeyabbs CreditAttribution: joeyabbs commentedAlthough Drupal 7 uses jQuery 1.4 it should be considered to update the
jquery.pngFix.js
file in order to support jQuery 1.5.x.As of jQuery 1.5 attribute selectors must be wrapped in quotes (they always should have but now jQuery is strict about it).
Therefore the following (Line #49) will no longer work:
jQuery(this).find("img[src$=.png]").each(function() {
This must be updated to:
jQuery(this).find("img[src$='.png']").each(function() {
(single quotes now wrap .png)Line #101 should also be updated to:
jQuery(this).find("input[src$='.png']").each(function() {
I have tested these changes and jquery.pngFix.js now works for latest jQuery as well as continuing to work with older versions of jQuery.
Comment #5
dddbbb CreditAttribution: dddbbb commentedsub
Comment #6
klonosSo far it works for me whether I use jQ 1.4.x or 1.5.x versions. The patch is a simple edit of the one in #2 to include the single quotes wrap as per #4 above.
@Rob Loach: would really appreciate it if you gave this a quick review at some point?
Comment #7
klonos...and her's the actual file ;)
Comment #8
klonosUpdate: ...just letting everyone here + anyone else interested know of the PNG Behave! project that already has a stable 7.x version available.