PrestaShop/PrestaShop — pull request #449 by MyBB-Services (2013-05-25 15:57:21+00:00)
Title: [*] FO : Improve product.js attributes/combination selection

A few changes to the way event listening was handled on attributes :

Events listeners for combinations
---------------------
Removed the DOM0 listeners from the template, and switched to Jquery "on" event handler instead.

Explicit classes for JS purpose
-----------------------------------------
Prefixing classes which are required by JS code makes it easier for everyone to work with the templates. Here are the classes I added :
```
.js-attributes // The container for all attributes selectors
.js-attribute_select // Attribute tag
.js-attribute_color // Color picker
.js-attribute_color_hidden // The hidden color picker field
.js-attribute_radio // Atrribute tag
```

Less DOM traversing
----------------------------
Removed some ```$(elt).parent().parent().parent().children('.color_pick_hidden,#color_pick_hidden')``` break easily if any changes are made to the HTML code. I cleaned up some of them.

If you are OK with those changes, I'll be more than happy to push further on simplifying product.js !
Regards,