Original <table> classes are not overridden anymore
parent
8ac7bc7c41
commit
fbbf58cb70
|
@ -84,7 +84,8 @@
|
||||||
$fixedHeadRow,
|
$fixedHeadRow,
|
||||||
$temp,
|
$temp,
|
||||||
tfootHeight = 0;
|
tfootHeight = 0;
|
||||||
|
|
||||||
|
settings.originalTable = $(this).clone();
|
||||||
settings.includePadding = helpers._isPaddingIncludedWithWidth();
|
settings.includePadding = helpers._isPaddingIncludedWithWidth();
|
||||||
settings.scrollbarOffset = helpers._getScrollbarWidth();
|
settings.scrollbarOffset = helpers._getScrollbarWidth();
|
||||||
settings.themeClassName = settings.themeClass;
|
settings.themeClassName = settings.themeClass;
|
||||||
|
@ -137,6 +138,8 @@
|
||||||
} else {
|
} else {
|
||||||
$divHead = $('<div class="fht-thead"><table class="fht-table"></table></div>').prependTo($wrapper);
|
$divHead = $('<div class="fht-thead"><table class="fht-table"></table></div>').prependTo($wrapper);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$divHead.find('table.fht-table').addClass(settings.originalTable.attr('class'));
|
||||||
|
|
||||||
$thead.clone().appendTo($divHead.find('table'));
|
$thead.clone().appendTo($divHead.find('table'));
|
||||||
} else {
|
} else {
|
||||||
|
@ -409,7 +412,11 @@
|
||||||
fixedBodyWidth = $wrapper.width(),
|
fixedBodyWidth = $wrapper.width(),
|
||||||
fixedBodyHeight = $fixedBody.find('.fht-tbody').height() - settings.scrollbarOffset,
|
fixedBodyHeight = $fixedBody.find('.fht-tbody').height() - settings.scrollbarOffset,
|
||||||
$newRow;
|
$newRow;
|
||||||
|
|
||||||
|
$thead.find('table.fht-table').addClass(settings.originalTable.attr('class'));
|
||||||
|
$tbody.find('table.fht-table').addClass(settings.originalTable.attr('class'));
|
||||||
|
$tfoot.find('table.fht-table').addClass(settings.originalTable.attr('class'));
|
||||||
|
|
||||||
// Fix cell heights
|
// Fix cell heights
|
||||||
helpers._fixHeightWithCss( $firstThChild, tableProps );
|
helpers._fixHeightWithCss( $firstThChild, tableProps );
|
||||||
helpers._fixWidthWithCss( $firstThChild, tableProps );
|
helpers._fixWidthWithCss( $firstThChild, tableProps );
|
||||||
|
@ -486,6 +493,8 @@
|
||||||
} else {
|
} else {
|
||||||
$divFoot = $('<div class="fht-tfoot"><table class="fht-table"></table></div>').appendTo($wrapper);
|
$divFoot = $('<div class="fht-tfoot"><table class="fht-table"></table></div>').appendTo($wrapper);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$divFoot.find('table.fht-table').addClass(settings.originalTable.attr('class'));
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (true) {
|
switch (true) {
|
||||||
|
@ -592,6 +601,8 @@
|
||||||
var $obj = $('<table class="fht-table"><tr><td style="padding: 10px; font-size: 10px;">test</td></tr></table>'),
|
var $obj = $('<table class="fht-table"><tr><td style="padding: 10px; font-size: 10px;">test</td></tr></table>'),
|
||||||
defaultHeight,
|
defaultHeight,
|
||||||
newHeight;
|
newHeight;
|
||||||
|
|
||||||
|
$obj.addClass(settings.originalTable.attr('class'));
|
||||||
|
|
||||||
$obj.appendTo('body');
|
$obj.appendTo('body');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue