We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a415f6c commit f46aa99Copy full SHA for f46aa99
src/resources/views/editor.blade.php
@@ -1,6 +1,5 @@
1
-(function(window,$){
+$(function(){
2
$.ajaxSetup({headers: {'X-CSRF-TOKEN': '{{csrf_token()}}'}});
3
- window.LaravelDataTables = window.LaravelDataTables || {};
4
@foreach($editors as $editor)
5
var {{$editor->instance}} = window.LaravelDataTables["%1$s-{{$editor->instance}}"] = new $.fn.dataTable.Editor({!! $editor->toJson() !!});
6
{!! $editor->scripts !!}
@@ -9,4 +8,4 @@
9
8
@endforeach
10
11
window.LaravelDataTables["%1$s"] = $("#%1$s").DataTable(%2$s);
12
-})(window,jQuery);
+});
0 commit comments