Add support for dataTables.defaults in conditionalPaging plugin

pull/313/head
Constantine Lebedev 8 years ago
parent 9cfad60781
commit a4b72c315e

@ -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);
})(window, document, jQuery);

Loading…
Cancel
Save