$.post("controller.pl", data, kivi.eval_json_result);
}
+function redisplay_linetotals(data) {
+ $('.row_entry [name="linetotal"]').each(function(idx, elt) {
+ $(elt).html(data[idx]);
+ });
+}
+
function row_table_scroll_down() {
$('#row_table_scroll_id').scrollTop($('#row_table_scroll_id')[0].scrollHeight);
}
}
function row_set_keyboard_events(rows) {
- console.log(rows);
-
$(rows).keydown(function(event) {
if(event.keyCode == 40 && event.shiftKey == true) {
// shift arrow down
}
});
row_set_keyboard_events($('.row_entry'));
+ $('.recalc').change(recalc_amounts_and_taxes);
});
</script>