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.
Hi all,
is it possible to correct line 91 of misc/teaser.js to update the JS code to the latest version of JQuery?
The form '[@disabled]' had been deprecated. For people like me using JQuery v1.3.2, this line generates an error.
Please, change
if ($(teaser).is('[@disabled]')) {
to
if ($(teaser).is(':disabled')) {
Regards,
Salvatore.
Comment | File | Size | Author |
---|---|---|---|
#4 | teaser-jquery.patch | 345 bytes | tuffnatty |
#3 | teaser-jquery.patch | 345 bytes | tuffnatty |
Comments
Comment #1
tuffnatty CreditAttribution: tuffnatty commentedIt really breaks with jQuery 1.3+. The @ in selectors were deprecated in jQuery 1.2 which ships with Drupal by default, so it's perfectly ok to clean this only use of [@type] selector in Drupal core.
Comment #2
jide CreditAttribution: jide commentedThis needs a patch first to get RTBC (reviewed & tested by the community) status.
Comment #3
tuffnatty CreditAttribution: tuffnatty commentedHere it is.
Comment #4
tuffnatty CreditAttribution: tuffnatty commentedMy pardon, that patch was a reverse one. Here is the good one.
Comment #6
jide CreditAttribution: jide commentedPatches should be first applied to HEAD then be backported, but since this code is not in d7 anymore, obviously we can't.
Just one thing, patches for core should be made from the root of your drupal installation. See http://drupal.org/patch/create.Edit : Err, sorry, it is.
Comment #7
jide CreditAttribution: jide commentedSetting this as RTBC, then.
Comment #8
Gábor HojtsyCommitted to Drupal 6, thanks.