Skip to content

Commit

Permalink
Make sure event listener finds the correct fields
Browse files Browse the repository at this point in the history
  • Loading branch information
flack committed Nov 22, 2023
1 parent 3593e91 commit a8e86db
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,8 @@ function extractlabel(cellval) {

<?php if ($data['state'] == 'proposed') { ?>
<script>

jQuery("#<?= $grid_id ?>")
.on("keyup", '[aria-describedby="<?= $grid_id ?>_pricePerUnit"] input, [aria-describedby="<?= $grid_id ?>_units"] input', function() {
$("#<?= $grid_id ?>")
.on("keyup", '.sum input', function() {
var rowid = $(this).closest('tr').attr('id'),
grid = jQuery("#<?= $grid_id ?>"),
price = grid.jqGrid('getCell', rowid, 3),
Expand Down

0 comments on commit a8e86db

Please sign in to comment.