Closed (fixed)
Project:
Project
Version:
5.x-1.x-dev
Component:
Releases
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
8 Jul 2007 at 14:51 UTC
Updated:
27 Jul 2007 at 21:28 UTC
Jump to comment: Most recent file
if i open the URL node/61/edit (this is the edit url for my project - "project/myproject/edit") i get the following JS error. All collapsible form items on this page get "disabled" and are no more collapsible :-(.
Firebug error:
$(this).ancestors is not a function
http://localhost/drupal5/sites/all/modules/project/project.js
Line 25
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | project.js_.patch | 985 bytes | hass |
Comments
Comment #1
hass commentedHere is a working patch for fixing this parents bug
Comment #2
dwwproject.js works just fine on FF 1.5 and Safari 2.0.4 for me. What platform is causing your problem? project.js has been like this for months and months on d.o, and no one has ever complained, so this hardly seems critical.
Without any way to reproduce the bug, I can't verify the patch and commit it.
Comment #3
hass commentedWindows XP SP2 with Firefox 2.0.4... !??? If you search for "ancestors" in the jquery api i cannot find anything telling about this... yesterday i learned "parents" is save for jquery 1.2, too. The error prevents the removal of the selectbox right to "modules" and "themes" radio selectbox. I will provide a screenshot later to make sure we are talking about the same, with an repro example.
I wonder why you are not able to repro this...
Comment #4
dwwAre you using a patched (newer) version of jQuery than the one in D5 core?
Comment #5
hass commentedAs told in http://www.learningjquery.com/2006/12/how-to-get-anything-you-want-part-2
.ancestors()is no more supported in jquery 1.1 or higher and we need to change to.parents(). Additional .parents() is supported since 1.0 alpha.I wonder why my box claims about missing function on D5 and i cannot remember that i have touched jquery in any way... need to check my box if i altered jquery :-(.
However the patch is valid and will fix future problems in D6 and for some people who used this jquery update module... as a side note.
Comment #6
hass commentedYup, my local jquery has been updated and i forgotten this... sorry for making this critical.
However the above is valid and the patch should be applied.
Comment #7
dwwTested and committed to HEAD. Thanks.
Comment #8
(not verified) commented