Skip to content

Commit 7ddf439

Browse files
committed
Merge pull request mcintyre321#80 from interestincode/patch-1
Wait for dataTables script to load
2 parents f0866ef + 33e0aac commit 7ddf439

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Mvc.JQuery.Datatables.Templates/Views/Shared/DataTable.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
<script type="text/javascript">
3535
(function setDataTable() {
36-
if(!window.jQuery) {
36+
if(!window.jQuery || !$.fn.DataTable) {
3737
setTimeout(setDataTable, 100);
3838
return;
3939
}

0 commit comments

Comments
 (0)