I have installed jQuery Update but it breaks some core functionality that makes the admin UI a struggle to deal with. Is there a way to keep jQuery Update enabled but disable it when the admin theme is visible?
It should be noted the underline issue is really a core problem which is now fixed over at http://drupal.org/node/1480568
Anyways if people still need a fix for this this is what I have in place.
This changes the variable right before jquery_udpate uses it when is an admin path. Also this doesn't hard-code to checking the url 'admin' because and admin path can also be /node/1/edit etc..
There is an open issue about this with a patch, but I have not tested it yet.
Keep in mind that you may also need to tweak the patch so that ctools paths get excluded, too, as the updates can cause problems with the ctools popups. You may also need to add in logic to detect the node add and edit pages.
Unfortunately this will be pretty difficult to do (unless there's a hack I'm not thinking of).
So, even if you cleared the caches on every page load, AND implemented your own
Even if that is acceptable (which I can't imagine is the case), you would still need to reverse engineer the changes made by jQuery Update for your own
A sort-of hack did come to mind; you could implement