Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2bebd8d

Browse files
committed
Add window.LaravelDataTables
1 parent00195f3 commit2bebd8d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
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($editorsas$editor)
55
var{{$editor->instance}} = window.LaravelDataTables["%1$s-{{$editor->instance}}"] = new $.fn.dataTable.Editor({!!$editor->toJson()!!});
66
{!!$editor->scripts!!}
77
@foreach((array)$editor->eventsas$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+
});

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp