diff --git a/features/conditionalPaging/dataTables.conditionalPaging.js b/features/conditionalPaging/dataTables.conditionalPaging.js index e8b5807..7326351 100644 --- a/features/conditionalPaging/dataTables.conditionalPaging.js +++ b/features/conditionalPaging/dataTables.conditionalPaging.js @@ -32,7 +32,7 @@ return; } - var options = dtSettings.oInit.conditionalPaging; + var options = dtSettings.oInit.conditionalPaging || $.fn.dataTable.defaults.conditionalPaging; if ($.isPlainObject(options) || options === true) { var config = $.isPlainObject(options) ? options : {}, @@ -79,4 +79,4 @@ api.on('draw.dt', conditionalPaging); } }); -})(window, document, jQuery); \ No newline at end of file +})(window, document, jQuery);