1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Make larger area clickable in datatable header

This commit is contained in:
Hillel Coren 2016-11-30 20:30:48 +02:00
parent 55340b8d13
commit 9f7d7a32a3
2 changed files with 8 additions and 2 deletions

View File

@ -2249,9 +2249,9 @@ $LANG = array(
'deleted_product' => 'Successfully deleted product',
'deleted_products' => 'Successfully deleted :count products',
'restored_product' => 'Successfully restored product',
'update_credit' => 'Update credit',
'update_credit' => 'Update Credit',
'updated_credit' => 'Successfully updated credit',
'edit_credit' => 'Edit credit',
'edit_credit' => 'Edit Credit',
);

View File

@ -169,6 +169,12 @@
filterTable_{{ $entityType }}($('#tableFilter_{{ $entityType }}').val());
}
$('.listForm_{{ $entityType }} .head0').click(function(event) {
if (event.target.type !== 'checkbox') {
$('.listForm_{{ $entityType }} .head0 input[type=checkbox]').click();
}
});
// Enable/disable bulk action buttons
window.onDatatableReady_{{ Utils::pluralizeEntityType($entityType) }} = function() {
$(':checkbox').click(function() {