News:

Looking for documentation? Take a look on our wiki

Main Menu

jQuery version?

Started by EvanGR, September 27, 2018, 12:43:49 PM

Previous topic - Next topic

EvanGR

I notice that VM3 (3.2.15) ships with jQuery v1.11.3 and jQueryUI v1.9.2 (in components/com_virtuemart/assets/js/).

These are very old versions and have known security vulnerabilities (medium and high risk).

Questions:

1) Is this the standard jQuery that you find in other CDNs?

2) What is the most up-to-date jQuery/UI branch that is compatible with VM3.2+ series?

We are looking to replace our libraries asap.

Thank you

Studio 42

Virtuemart do not load directly jQuery in Joomla 3, but use Joomla
if(JVM_VERSION<3){
//Very important convention with other 3rd pary developers, must be kept. DOES NOT WORK IN J3
if (JFactory::getApplication ()->get ('jquery')) {
return FALSE;
} else {

}
} else {
JHtml::_('jquery.framework');
//return true;
}

About jQueryUI, you can overide it in templates/YOURTEMPLATE/js directly
And for Joomla core script, you have to do it in in ui subfolder

media/jui /js/bootstrap.js override templates/MONTEMPLATE/js/jui/bootstrap.js
media/ jui/css/ bootstrap.css override templates/MONTEMPLATE/ css/jui/bootstrap.css
media/ jui/images/ image.png override templates/MONTEMPLATE/ images/jui/image.png
....
Note that it not always work, because some component do not follow the rules.