Skip to content

Commit f46aa99

Browse files
committed
Apply fix for BFCACHE from 133
1 parent a415f6c commit f46aa99

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/resources/views/editor.blade.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
(function(window,$){
1+
$(function(){
22
$.ajaxSetup({headers: {'X-CSRF-TOKEN': '{{csrf_token()}}'}});
3-
window.LaravelDataTables = window.LaravelDataTables || {};
43
@foreach($editors as $editor)
54
var {{$editor->instance}} = window.LaravelDataTables["%1$s-{{$editor->instance}}"] = new $.fn.dataTable.Editor({!! $editor->toJson() !!});
65
{!! $editor->scripts !!}
@@ -9,4 +8,4 @@
98
@endforeach
109
@endforeach
1110
window.LaravelDataTables["%1$s"] = $("#%1$s").DataTable(%2$s);
12-
})(window,jQuery);
11+
});

0 commit comments

Comments
 (0)