Jump to content

Fixing Jquery.ui Theme


Recommended Posts

Hi,

I just fixed a theme that was blocking my module.

 

Theme had incorporated his own jquery.ui in his js directory

 

Original header.tpl

<script type="text/javascript" src="{$js_dir}jquery-ui.min.js"></script>

After template rendering : src="www.shop.com/themes/boughttheme/js/jquery-ui.min.js"

$js_dir link to theme js folder and not to prestashop/js folder

 

header.tpl modified

<script type="text/javascript" src="{$base_dir}js/ui/jquery.ui.core.min"></script>

Seems clean to me

 

But is this better ?

<script type="text/javascript" src="{$base_dir}js/jquery-ui.will.be.removed.in.1.6.js"></script>

 

Thanks for feedbacks.

 

Best regards

Edited by math_php (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...