I know this is really in demand so here is version 1 of this patch.

please review.

this wont be commited to 4.7 but we know people want this.

CommentFileSizeAuthor
#28 jquery_14.patch76.36 KBSteven
#26 jquery_13.patch76.27 KBSteven
#21 jquery_12.patch76.05 KBSteven
#17 jquery_11.patch75.12 KBSteven
#12 jquery_10.patch71.26 KBm3avrck
#11 jquery_drupal_add_js_4_7-5.patch54.04 KBAnonymous (not verified)
#10 jquery_drupal_add_js_4_7-4.patch53.67 KBAnonymous (not verified)
#4 jquery_drupal_add_js_4_7-3.patch54.19 KBAnonymous (not verified)
#2 jquery_drupal_add_js_4_7-2.patch56.15 KBAnonymous (not verified)
#1 jquery.js_1.txt16.98 KBAnonymous (not verified)
jquery_drupal_add_js_4_7.patch55.98 KBAnonymous (not verified)

Comments

Anonymous’s picture

StatusFileSize
new16.98 KB

here is the jquery.js file since I couldn't attach it with the patch. (same jquery.js i grabbed from HEAD)

Anonymous’s picture

StatusFileSize
new56.15 KB

new one that should actually work :P

dkruglyak’s picture

What about patching against 4.7.3? Could this make it into 4.7.4?

Also these look like pretty extensive changes... Is there an easy way to backup / restore affected files if the patch goes wrong?

Thanks for putting this together!

Anonymous’s picture

StatusFileSize
new54.19 KB

k this one is even better. .

after discovering the order process of the files being included, i discoverd and issue where the tinymce toggle function which gets added by drupal_set_html_head() goes before the include of tinymce.js so that was an issue.

to resolve this, i removed the drupal_get_js() from theme_page and phptemplate.engine and just stuck it in drupal_get_html_head().

Anonymous’s picture

im still testing this patch and i want others to as well.. once a final solid patch is ready.. I'm not sure what we can do to make things easier from there.. need to think about that a little more..

regarding commiting to a 4.7.4 copy... it wont happen. It'd be great but it just wont happen :(

dkruglyak’s picture

I will check it out. The idea of having to update / re-patch so many changes with every 4.7.x release (in production) sounds a little scary. Hope it might be possible to consolidate changes to be more compact...

edmund.kwok’s picture

Patch did not apply cleanly to latest 4.7 checkout for theme.inc and drupal.js. Will test it when this is rectified :-)

Anonymous’s picture

to be more compact is not going to happen. this is changing every .js file to be the new jquery way.

regarding it not applying properly.. those were the same 2 that i got errors on for the first one.. then i rerolled another one and it was ok.. did you try the latest? can you see anything in the patch file that can be causing this?

edmund.kwok’s picture

With the latest cvs 4.7 checkout, theme.inc and drupal.js are as follows:

// $Id: theme.inc,v 1.292.2.7 2006/09/05 10:22:24 killes Exp $
// $Id: drupal.js,v 1.22.2.2 2006/08/19 19:55:20 killes Exp $

While in the patch:

--- includes/theme.inc	2 Jul 2006 10:08:23 -0000	1.292.2.5
--- misc/drupal.js	29 May 2006 14:23:32 -0000	 1.22.2.1

Slightly older versions ;-)

Anonymous’s picture

StatusFileSize
new53.67 KB

sorry for my cvs noobness

try this one.

Anonymous’s picture

StatusFileSize
new54.04 KB

arg.. i missed one thing..

m3avrck’s picture

StatusFileSize
new71.26 KB

Here's an updated patch that *includes* Jquery in it.

To do this, just hack your CVS/Entries in misc an add:

/jquery.js/0/Initial jquery.js//

Anonymous’s picture

yay ted!

mikey_p’s picture

Category: feature » bug

Applied this and the autocomplete.js is still broken with 4.7.3 with or without jquery.js after applying the patch. Otherwise works fine, I am using the jquery from head, with 4.7.3.

mikey_p’s picture

correction...not autocomplete.js it break the collapse.js boxes on edit and node/add pages...I had the same problem before applying this patch.

chx’s picture

Category: bug » task
Status: Active » Needs review
Steven’s picture

StatusFileSize
new75.12 KB

Keeping jQuery patch up to date with 1.0.2. I also included some drupal.css changes which were not backported before.

Not sure what the status of this should be. This patch is not going to be committed...

RobRoy’s picture

Status: Needs review » Postponed

Applied Steven's last patch, works great. Thanks.

Maybe we should mark this postponed? So it stays in the forefront a bit, but no one will try and review it at least. Change it back if I'm wrong.

dvessel’s picture

Sweet! I'll give this is a whirl. Was gonna hold off but if it works out without much problems, I'll stick with this till 5.0. Thanks!

Each revision of the patch only works with a fresh install, right? Well, I'll find out.

RobRoy’s picture

Status: Postponed » Needs work

Actually, there is an error on node/add/page if you have File attachments enabled for pages. Putting back to code needs work. Did some part of the upload backport not get polished. Any thoughts on this Steven?

button has no properties drupal.js (line 31)

Steven’s picture

Status: Needs work » Postponed
StatusFileSize
new76.05 KB

Yeah this was not backported properly. Better patch for 4.7-HEAD.

RobRoy’s picture

Sweet. That one is working great so far. Thanks Steven.

dkruglyak’s picture

Status: Postponed » Needs review

Looks like we might need a 4.7.4 upgrade ?

m3avrck’s picture

Status: Needs review » Postponed

This will never make it into 4.7.

Not sure what the best status .. should we keep it active? Postponed?

If it's postponed it shouldn't automatically be closed, right?

RobRoy’s picture

I think postponed is fine so it stays visible. We can close it when 4.7 is old news or when most peeps are on 5.0+.

Steven’s picture

StatusFileSize
new76.27 KB

Keeping in sync with head (to fix the radiobutton-inside-collapsed-fieldset issue).

dkruglyak’s picture

This constant need for updating and patching core files seems a tad unnerving. What do you think about instead merging this effort into here: http://drupal.org/project/jquery47

What are the pros and cons? Ability to maintain and use with non-HEAD versions of the tree (I am still on 4.7.3)? Support for 3rd party jQuery plugins?

Thoughts?

Steven’s picture

StatusFileSize
new76.36 KB

Updating with jQuery 1.0.3 as per HEAD.

dkruglyak: I've only ever used this patch for projects where we don't rely on 4.7 drupal.js at all. Such modules are rare, and easy to port anyway. Both projects have their uses I guess, but IMO the rest of the JS improvements, including on the PHP side, make it much easier to do heavy jQuery lifting in custom modules and themes.

bdragon’s picture

Status: Postponed » Closed (won't fix)

Well, the jquery47 module handles this, so really no reason to continue to keep this issue open still...

dkruglyak’s picture

Status: Closed (won't fix) » Closed (fixed)

I think 4.7 and jQuery 1.0.x are time to retire...