Skip to content

Commit 594ca35

Browse files
frknakkyajra
andauthored
Made namespace of scout script adaptable
Co-authored-by: Arjay Angeles <aqangeles@gmail.com>
1 parent 60fc09b commit 594ca35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/resources/views/scout.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
$('#%1$s').on('xhr.dt', function (e, settings, json, xhr) {
33
if (json == null || !('disableOrdering' in json)) return;
44

5-
let table = LaravelDataTables[$(this).attr('id')];
5+
let table = {{ config('datatables-html.namespace', 'LaravelDataTables') }}[$(this).attr('id')];
66
if (json.disableOrdering) {
77
table.settings()[0].aoColumns.forEach(function(column) {
88
column.bSortable = false;

0 commit comments

Comments
 (0)