Skip to content

Commit

Permalink
Mainly for shortmessage field
Browse files Browse the repository at this point in the history
  • Loading branch information
codersaiful committed Jun 21, 2021
1 parent 7117879 commit 9b31e63
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion assets/js/custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -1592,7 +1592,17 @@
updateCheckBoxCount(temp_number);
}


/**
* Mainly for shortmessage field
*/
$('body').on('change', '.wpt_row input.message', function() {
var temp_number = $(this).parents('tr.wpt_row').data('temp_number');
var msg = $(this).val();
var product_id = $(this).parents('tr').data('product_id');

var thisRow = '#table_id_' + temp_number + ' tr.product_id_' + product_id;
$( thisRow + ' input.message').val(msg);
});
$('body').on('change', '.wpt_row input.input-text.qty.text', function() {
var temp_number = $(this).parents('tr.wpt_row').data('temp_number');
var Qty_Val = $(this).val();
Expand Down

0 comments on commit 9b31e63

Please sign in to comment.