Commit aa99f68f by Damien Moulard

linting

parent c60cf37e
Pipeline #1279 passed with stage
in 1 minute 21 seconds
...@@ -1534,6 +1534,7 @@ function display_products(params) { ...@@ -1534,6 +1534,7 @@ function display_products(params) {
// Color line on input focus // Color line on input focus
$('#products_table').on('focus', 'tbody td .product_qty_input', function () { $('#products_table').on('focus', 'tbody td .product_qty_input', function () {
const row = $(this).closest('tr'); const row = $(this).closest('tr');
row.addClass('focused_line'); row.addClass('focused_line');
}); });
...@@ -1541,6 +1542,7 @@ function display_products(params) { ...@@ -1541,6 +1542,7 @@ function display_products(params) {
$('#products_table').on('blur', 'tbody td .product_qty_input', function () { $('#products_table').on('blur', 'tbody td .product_qty_input', function () {
// Remove line coloring on input blur // Remove line coloring on input blur
const row = $(this).closest('tr'); const row = $(this).closest('tr');
row.removeClass('focused_line'); row.removeClass('focused_line');
let val = ($(this).val() == '') ? 0 : $(this).val(); let val = ($(this).val() == '') ? 0 : $(this).val();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment