Author Topic: addtocart JS helper does not bind for image  (Read 466 times)

v1pr

  • Beginner
  • *
  • Posts: 3
  • A beginner
addtocart JS helper does not bind for image
« on: April 14, 2015, 23:51:11 pm »
I've found that if I use an input type="image" as the addtocart form submit it does not work. I've made the fix for it, please implement if possible:

/components/com_virtuemart/assets/js/vmprices.js:
Code: [Select]
160c160
<     if ( jQuery(e.originalEvent.target).prop("type") == "submit" ||  jQuery(e.originalEvent.target).prop("type") == "image" ) {
---
>     if (jQuery(e.originalEvent.target).prop("type") == "submit") {

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9942
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: addtocart JS helper does not bind for image
« Reply #1 on: April 15, 2015, 03:17:39 am »
thx, added
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/