Browse Source

[REF] pretty js

pull/84/head
robin.keunen 4 years ago
parent
commit
cead37f6fd
  1. 4
      easy_my_coop/static/src/js/easy_my_coop.js
  2. 601
      easy_my_coop/static/src/js/jquery.inputmask.bundle.js

4
easy_my_coop/static/src/js/easy_my_coop.js

@ -19,7 +19,7 @@ odoo.define('easy_my_coop.oe_easymy_coop', function (require) {
}
$('input.js_quantity').change();
var $share_price = $('#share_price').text();
$('input[name="total_parts"]').val($('input.js_quantity').val()*$share_price);
$('input[name="total_parts"]').val($('input.js_quantity').val() * $share_price);
$('input[name="total_parts"]').change();
});
});
@ -36,7 +36,7 @@ odoo.define('easy_my_coop.oe_easymy_coop', function (require) {
var quantity_max = amount_max / $share_price;
$input.val(quantity > min ? total_part <= amount_max ? quantity : quantity_max : min);
$input.change();
$('input[name="total_parts"]').val($input.val()*$share_price);
$('input[name="total_parts"]').val($input.val() * $share_price);
return false;
});

601
easy_my_coop/static/src/js/jquery.inputmask.bundle.js
File diff suppressed because it is too large
View File

Loading…
Cancel
Save