1
0
mirror of https://github.com/DataTables/DataTables.git synced 2025-01-18 11:52:11 +01:00

Fix: Remove dataTable class from the host table on destroy

- Fixes issue #188
This commit is contained in:
Allan Jardine 2013-05-26 09:25:53 +01:00
parent 7f1dfc2b38
commit cb3174c29e

View File

@ -126,7 +126,9 @@ _api.register( 'destroy()', function ( remove ) {
// Restore the width of the original table - was read from the style property,
// so we can restore directly to that
jqTable.css( 'width', settings.sDestroyWidth );
jqTable
.css( 'width', settings.sDestroyWidth )
.removeClass( classes.sTable );
// If the were originally stripe classes - then we add them back here.
// Note this is not fool proof (for example if not all rows had stripe