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 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 commentedThis needs a patch first to get RTBC (reviewed & tested by the community) status.
Comment #3
tuffnatty commentedHere it is.
Comment #4
tuffnatty commentedMy pardon, that patch was a reverse one. Here is the good one.
Comment #6
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 commentedSetting this as RTBC, then.
Comment #8
gábor hojtsyCommitted to Drupal 6, thanks.