File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1- (function(window,$){
2- $.ajaxSetup({headers: {'X-CSRF-TOKEN': '{{ csrf_token ()} } '}});
1+ $(function(){
32 window.LaravelDataTables = window.LaravelDataTables || {};
3+ $.ajaxSetup({headers: {'X-CSRF-TOKEN': '{{ csrf_token ()} } '}});
44 @foreach ($editors as $editor )
55 var {{ $editor -> instance } } = window.LaravelDataTables["%1$s-{{ $editor -> instance } } "] = new $.fn.dataTable.Editor({!! $editor -> toJson () ! !} );
66 {!! $editor -> scripts ! !}
77 @foreach ((array ) $editor -> events as $event )
88 {{ $editor -> instance } } .on('{!! $event [' event' ] ! !} ', {!! $event [' script' ] ! !} );
99 @endforeach
1010 @endforeach
11- window.LaravelDataTables["%1$s"] = $("#%1$s").DataTable(%2$s);
12- })(window,jQuery) ;
11+ window.LaravelDataTables["%1$s"] = $("#%1$s").DataTable(%2$s);
12+ });
You can’t perform that action at this time.
0 commit comments