I'm using DataTables (https://datatables.net)
When trying the mobile version of the website the jquery will stop working, But when using the desktop version everything works just fine.
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/v/dt/dt-1.11.3/r-2.2.9/datatables.min.css"/>
<script type="text/javascript" src="https://cdn.datatables.net/v/dt/dt-1.11.3/r-2.2.9/datatables.min.js"></script>
Error:
SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at Object.success (http://website/public/dashboard/index.php:1354:39)
at c (http://website/assets/vendor/global/global.min.js:1094:56)
at Object.fireWith [as resolveWith] (http://website/assets/vendor/global/global.min.js:1131:96)
at l (http://website/assets/vendor/global/global.min.js:2935:415)
at XMLHttpRequest.<anonymous> (http://website/assets/vendor/global/global.min.js:3026:235)
global.mis.js files:
The ajax call and jQuery works fine on desktop version, ONLY when mobile version of datatables is activated then the ajax and jQuery will stop working