I think we should start upgrading from the 1.2.2 version of jQuery. I have a branch here which updates to 1.6.4 in what I think are 3 key locations, demographics.php (since there seem to be ajax issues) left_nav.php (since that’s a frequently used file) and the calendar.
Thought I’d get this started, but not sure how to proceed. At the very least, if people want to try updating on their own systems this will get it started. Not sure it’s the right time to do it for the 4.1 patch as this is kind of a big change.
Hi,
Committed this to sourceforge (master branch). Agree not to place in the 4.1 patch unless it both improves performance (especially the Patient Summary page) and it gets adequate time for testing.
thanks for the contribution,
-brady
Hello,
I have been adding some new Jquery stuff for the UI on the external dataloads page that includes jquery-1.7.2.min.js and jquery-ui-1.8.21.custom.min.js as well. In doing this I snooped around and noticed we have a number of versions of jquery being used in a number of places in the tree. I agree with Brady that we need to ensure adequate test time if (when) we do anything. That being said Yester’s point about upgrading from the older version of jquery could actually be restated that we might want to migrate all the jquery code to a consistent version at some point. Although not right now as I don’t have the time to test everything
Mac
There are a number of cases where individual js components are included in a variety of areas along with a couple of the ui libraries. But here are the main js library files and their checksums:
I think best to include only the current jquery library, named just jquery.min.js (without the version number). Whoever does that would of course need to do careful testing.
a symlink from jquery.js to the named version file might be helpful for simple newbie review of where we’d be at…. agreed a substantial testing effort is required
Yeah, the references to older versions are sprinkled all over the place. As Rod suggests we could have all the php source refer to jquery.js and we can symlink to the one “production” version from there… that would help for future migration to new versions being done at the file system level…
In addition, the following two files ought to be renamed (and references updated):
\library\custom_template\ckeditor_source\adapters\jquery.js
\library\custom_template\ckeditor\adapters\jquery.js
They are not versions of the standard jquery library. Instead, they are a few user-created custom functions. It appears current naming conventions would imply they be named something like:
\library\custom_template\ckeditor_source\adapters\jquery.CKEditor.js
\library\custom_template\ckeditor\adapters\jquery.CKEditor.min.js
If it is a external project/package, it may be better to leave it untouched.
Is it possible to move these add-on packages in a separate directory? Currently library is a mix of openemr code and other packages like ckeditor, jquery while phpmyadmin is somewhere else.
If we want to use ckeditor internally, we do not want to invoke it from ‘custom_template’ which could have modified the code.