Working on Javascript front end

This commit is contained in:
David Bomba 2019-07-30 16:10:31 +10:00
parent df5778c3c5
commit 94181908bd

View File

@ -94,12 +94,15 @@ $(function() {
$(document).ready(function() { $(document).ready(function() {
$('.pay_invoices').attr("disabled", true);
$('.download_invoices').attr("disabled", true);
$("#datatable").on('change', 'input[type=checkbox]', function() { $("#datatable").on('change', 'input[type=checkbox]', function() {
var selected = []; var selected = [];
$.each($("input[name='hashed_ids[]']:checked"), function(){ $.each($("input[name='hashed_ids[]']:checked"), function(){
selected.push($(this).val()); selected.push($(this).val());
}); });
alert("Selected hashed_ids: " + selected.join(", "));
}); });
$('#table_filter').on('keyup', function(){ $('#table_filter').on('keyup', function(){