Ok, To update the jquery reference globally you can do it by redefining the constant PATH_JQUERY. This definition is defined in the file
/system/expressionengine/modules/jquery/mod.jquery.php, lines 39 through 46 (on EE2.10.1).
This patch assumes you have your jquery and its dependant libraries in the same folder structure as in
And my usual notice : This method involves modifying core files. Be aware that future upgrades and/or changes may invalidate your work! Modifying core is usually not recommended however there's no other way thus far (apart from writing a module that overloads the Jquery class in EE, but I digress).
The easiest way to apply this patch is to first copy the jquery directory at
By copying the existing folder we can pick and choose the elements we upgrade, you can rebuild or refactor other or specific elements which I hint to at the end, but this method is by far the easiest to manage.
So now in my
jquery_2 folder I wish to just update jquery core, so I go and get my compressed file, and replace the jquery.js file in my new directory. Similarly if you wish to upgrade UI elements you'll need to replace the resourses in your new directory in the same fashion.
Lastly, we need to tell EE to look in our new directory, so referring to the file mentioned able I change line 45 (EE2.10.1) from
And thats it, we're done. This patch works to update Jquery in the CP, SAEF, File Upload and the front end jquery tags too.
Cherry Picking elements to upgrade
/system/expressionengine/modules/jquery/mod.jquery.php. Here what is happening is depending on what part of jquery is requested (file, plugin, ui, effect, or core) the sub path is appened to
PATH_JQUERY (which we no from above is defined as
PATH_JQUERY folder, find the lines in the big if statement that relate to what you need and alter the sub-path.
While this solution is more verbose, it is technichally the same as jChrono's comment, except we're not overriding the existing files, but a copy.