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(){
3
2
window.LaravelDataTables = window.LaravelDataTables || {};
3
+ $.ajaxSetup({headers: {'X-CSRF-TOKEN': '{{ csrf_token ()} } '}});
4
4
@foreach ($editors as $editor )
5
5
var {{ $editor -> instance } } = window.LaravelDataTables["%1$s-{{ $editor -> instance } } "] = new $.fn.dataTable.Editor({!! $editor -> toJson () ! !} );
6
6
{!! $editor -> scripts ! !}
7
7
@foreach ((array ) $editor -> events as $event )
8
8
{{ $editor -> instance } } .on('{!! $event [' event' ] ! !} ', {!! $event [' script' ] ! !} );
9
9
@endforeach
10
10
@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