Merge pull request #313 from koss-lebedev/master

Add support for dataTables.defaults in conditionalPaging plugin
pull/316/head
Allan Jardine 8 years ago committed by GitHub
commit e5763ea110

@ -32,7 +32,7 @@
return; return;
} }
var options = dtSettings.oInit.conditionalPaging; var options = dtSettings.oInit.conditionalPaging || $.fn.dataTable.defaults.conditionalPaging;
if ($.isPlainObject(options) || options === true) { if ($.isPlainObject(options) || options === true) {
var config = $.isPlainObject(options) ? options : {}, var config = $.isPlainObject(options) ? options : {},
@ -79,4 +79,4 @@
api.on('draw.dt', conditionalPaging); api.on('draw.dt', conditionalPaging);
} }
}); });
})(window, document, jQuery); })(window, document, jQuery);

Loading…
Cancel
Save