Monday, March 18, 2013

How to detect if datatables is loaded


if($.fn.dataTableExt){
console.log('datatables ok');
}else{
console.log('datatables ko');
//head.ready(function() {head.js("js/libs/jquery.dataTables.min.1.9.4.js")});
}

No comments:

Post a Comment

Git get all remote branches

git branch -r \ | grep -v '\->' \ | sed "s,\x1B\[[0-9;]*[a-zA-Z],,g" \ | while read remote; do \ git branc...