Author Topic: jQuery version?  (Read 112 times)

EvanGR

  • Jr. Member
  • **
  • Posts: 133
jQuery version?
« on: September 27, 2018, 12:43:49 pm »
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

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 3399
  • Joomla & Virtuemart addon developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3.0.x.y
Re: jQuery version?
« Reply #1 on: September 27, 2018, 13:40:01 pm »
Virtuemart do not load directly jQuery in Joomla 3, but use Joomla
Code: [Select]
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.