Upgrade to latest jQuery before WB 2.8.4

pattyland

Any updates on this? We should really stop using such an old version of jQuery, I can't use many plugins because they require jQuery > 1.9.X


BlackBird

Quote from: cwsoft on January 21, 2013, 07:09:25 PM
However as you already mentioned, most of the modules using jQuery (incl. my own ones) will not work out of the box when upgrading the files to latest jQuery version.

Guess it's better to stick with the actual version to keep backwards compatibility with existing modules for the 2.8.x series

It's simple enough: Keep old version in include for backward compatibility and use lib_jquery for the newest version. The only thing to keep in mind is that they must not be mixed.
[url=http://wbaddons.webbird.de]http://wbaddons.webbird.de[/url] [url=http://www.WebsiteBaker.org/forum/index.php/topic,27476.msg189845.html#msg189845]Don't miss this[/url]

badknight

#6
JQuery UI
Quote
API Redesign: Dialog

The dialog widget has undergone an API redesign

QuoteAPI Redesign: Progressbar

The progressbar widget has undergone an API redesign,
QuoteDeprecated APIs

As mentioned above, dialog went through an API redesigns which resulted in some existing APIs being deprecated


Jquery
QuoteNew .finish() method
.toggle(function, function, ... ) removed
jQuery.browser() removed
.live() removed
.die() removed
jQuery.sub() removed
.add()

and there is a Upgrade-Guide
----

there are many changes ..
Powermail 2.0 und jQuery 1.9.0 – nichts geht mehr! other Systems did try to test this version ;)
Ich würde gern die Welt verändern, doch Gott gibt mir den Quellcode nicht...

cwsoft

#5
@ruebenwurzel

Thanks for taking action. Did a quick check yesterday evening with basic core, seems ok.
However as you already mentioned, most of the modules using jQuery (incl. my own ones) will not work out of the box when upgrading the files to latest jQuery version.

Guess it's better to stick with the actual version to keep backwards compatibility with existing modules for the 2.8.x series (or add the jquery-migrate script as you suggested and run further tests on existing modules before final 2.8.4 release).

Cheers

ruebenwurzel

@cwsoft

Just tested it. Seems that the few core methods wich uses jquery works without problems.

But got some problems with modules and snippets wich uses the jquery from include folder. After adding "jquery-migrate-1.0.0.min.js" to includes/jquery folder and changing frontend and backend header to call this file too, all modules and snippets wich i use seems to work again.

But without changing core files (e.g. frontend.functions.php) a lot of users wich uses jquery will have problems.

Will send a package with all changed files to the devs. Hope they could have a look into it and maybe add the latest Versions of JQuery and JQueryUI to the next WB Release.

Regards
Matthias

cwsoft

Hi,

Quote from: ruebenwurzelI'm not shure if this is possible without changing additional some core files wich uses jQuery.
Easy to find out. Just replace the files in include folder and check the few core methods using jquery. Faster and more reliable than guessing :wink:

Cheers

ruebenwurzel

Hello,

looking into the changelog of JQuery 1.9.0, I'm not shure if this is possible without changing additional some core files wich uses jQuery.

Matthias


cwsoft

Hi,

updated versions of jQuery and jQuery-UI were released yesterday. Maybe last chance for upgrading the WB 2.8 SVN files before releasing WB 2.8.4 :wink:

jQuery latest: 1.9.0 (WB-SVN 1.8.3)
jQuery-UI latest: 1.10.0 (WB-SVN 1.9.2)

Cheers