[FIX] website_sale: bind event with touch for ipad

This commit is contained in:
Christophe Matthieu 2014-06-13 15:50:08 +02:00
parent f4474d7295
commit b8d4cd277e
1 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ $(document).ready(function () {
});
// change for css
$(document).on('mouseup', '.js_publish', function (ev) {
$(document).on('mouseup touchend', '.js_publish', function (ev) {
$(ev.currentTarget).parents(".thumbnail").toggleClass("disabled");
});
@ -55,7 +55,7 @@ $(document).ready(function () {
});
// change price when they are variants
$('form.js_add_cart_json label').on('mouseup', function (ev) {
$('form.js_add_cart_json label').on('mouseup touchend', function (ev) {
var $label = $(this);
var $price = $label.parents("form:first").find(".oe_price .oe_currency_value");
if (!$price.data("price")) {