Message Boards

Upgrade to jquery 3.5 in Liferay 7.2

Sean Ohara, modified 3 Years ago.

Upgrade to jquery 3.5 in Liferay 7.2

New Member Posts: 10 Join Date: 7/28/16 Recent Posts

I have a need to upgrade the jQuery version on our server to version 3.5.  Specifically the one referenced at the link below.

https://mysite.com/combo?browserId=ie&minifierType=js&languageId=en_US&b=7201&t=1605921341709&/o/frontend-js-jquery-web/jquery/jquery.min.js&/o/frontend-js-jquery-web/jquery/bootstrap.bundle.min.js&/o/frontend-js-jquery-web/jquery/collapsible_search.js&/o/frontend-js-jquery-web/jquery/fm.js&/o/frontend-js-jquery-web/jquery/form.js&/o/frontend-js-jquery-web/jquery/popper.min.js&/o/frontend-js-jquery-web/jquery/side_navigation.js

I thought it might be able to disable jQuery in the control panel then explicitly include the reference to the version of jQuery that I needed. However disabling jQuery disabled the inputs on my login page. I was able to use the chrome development tools to enable them again and log in, however once logged in the control panel would not expand. Eventually I was able to construct a URL that allowed me to get to the page I needed to enable jQuery again. 

So that is obviously not the solution. My latest idea is to override the version of jQuery included here...

https://github.com/liferay/liferay-portal/blob/7.2.x/modules/apps/frontend-js/frontend-js-jquery-web/package.json 

Can I accomplish this with a hook or a fragment? 

asha ramoliya, modified 1 Year ago.

RE: Upgrade to jquery 3.5 in Liferay 7.2

New Member Post: 1 Join Date: 8/16/22 Recent Posts

Hi,

If you find any solution to override the json sile, can you please provide solution here?