Jump to content

jquery uniform - select doesnt work on order history


Recommended Posts

Hi,

 

Presta uses jquery.uniform to render styled dropdowns, it works everywhere, almost, because when you go to order history, expand it, details fade out, and on the bottom, the select with message textarea is not rendered as uniform one.

It's because the details are loaded via ajax request. The thing is what to modify to let this select render correct.

Can you help me out ?

Thank you.

Link to comment
Share on other sites

Ok guys. I found the solution by myself.

 

You have to go to: history.js which is located in themes/your-theme/js folder

 

There in the beginning is a function showOrder which is launched when you click and fade out the order details in your order history account.

 

You have to add in history.js a code which reloads the select dynamically.

 

I added this right after:

 

$('.footab').footable();

 

and the code was:

 

$('#myid').selectivity();

 

Now select is styled!

 

I am using selectivity.js for dropdowns because this uniform.js is so heavy! i recommend everyone to get rid of it.

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...