Skip to content

Commit 23ccc92

Browse files
authored
Apply suggestions from code review
1 parent 067b0e0 commit 23ccc92

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/resources/views/crud/columns/inc/bulk_actions_checkbox.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,15 @@ function markCheckboxAsCheckedIfPreviouslySelected() {
6767
// if it was not a page change, we check if datatables have any search, or the url have any parameters.
6868
// if you have filtered entries, and then remove the filters we are sure the entries are in the table.
6969
// we don't remove them in that case.
70-
if(! pageChanged && (crud.table.search().length !== 0 || hasFilterApplied)) {
70+
if (! pageChanged && (crud.table.search().length !== 0 || hasFilterApplied)) {
7171
crud.checkedItems = [];
7272
}
7373
document
7474
.querySelectorAll('input.crud_bulk_actions_line_checkbox[data-primary-key-value]')
7575
.forEach(function(elem) {
7676
let checked = checkedItems.length && checkedItems.indexOf(elem.dataset.primaryKeyValue) > -1;
7777
elem.checked = checked;
78-
if(checked && crud.checkedItems.indexOf(elem.dataset.primaryKeyValue) === -1) {
78+
if (checked && crud.checkedItems.indexOf(elem.dataset.primaryKeyValue) === -1) {
7979
crud.checkedItems.push(elem.dataset.primaryKeyValue);
8080
}
8181
});

src/resources/views/crud/inc/datatables_logic.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ functionsToRunOnDataTablesDrawEvent: [],
322322
var token = $('meta[name="csrf_token"]').attr('content');
323323
324324
if (token) {
325-
return xhr.setRequestHeader('X-XSRF-TOKEN', token);
325+
return xhr.setRequestHeader('X-XSRF-TOKEN', token);
326326
}
327327
});
328328

0 commit comments

Comments
 (0)