foodsoft/app/views/finance/balancing/index.js.haml

15 lines
451 B
Text

$('#ordersTable').html('#{j(render('orders'))}');
:plain
$('.expand-trigger').click(function() {
var orderId = $(this).closest('tr').data('order_id');
var expandedRow = $('#expanded-row-' + orderId);
// Toggle visibility of the expanded row
expandedRow.toggleClass('hidden');
tableRow.toggleClass('border');
expandedRow.toggleClass('bordered');
return false; // Prevent the default behavior of the link
});