FSN#34665 queryselector vervangen door .children || floating header cell widths zijn nu bij het laden direct correct en sorteren werkt weer (?)
svn path=/Website/trunk/; revision=31354
This commit is contained in:
@@ -424,7 +424,7 @@ function updateTableHeaders() {
|
||||
floatingHeaderRow.css("width", $(this).css("width")-1);
|
||||
var insideFrame = $(this).offset();
|
||||
var outsideFrame = $(window.frameElement).offset();
|
||||
var scrollTop = $(window.parent).scrollTop() + $(window).scrollTop();
|
||||
var scrollTop = $(window.parent).scrollTop();
|
||||
var offset = 0;
|
||||
if (insideFrame) offset += insideFrame.top;
|
||||
if (outsideFrame) offset += outsideFrame.top;
|
||||
@@ -445,7 +445,7 @@ function updateTableHeaders() {
|
||||
});
|
||||
}
|
||||
|
||||
function loadTableHeaders() {
|
||||
$(function() {
|
||||
|
||||
$("table").each(function() {
|
||||
$(this).wrap("<div class=\"divrstable\" style=\"position:relative\"></div>");
|
||||
@@ -462,15 +462,16 @@ function loadTableHeaders() {
|
||||
clonedHeaderRow.css("opacity", "0.90");
|
||||
|
||||
originalHeaderRow.addClass("tableFloatingHeaderOriginal");
|
||||
|
||||
});
|
||||
updateTableHeaders();
|
||||
$(window.parent).scroll(updateTableHeaders);
|
||||
$(window.parent).resize(updateTableHeaders);
|
||||
};
|
||||
$('div.collapsed').on("click", updateTableHeaders);
|
||||
});
|
||||
|
||||
$(window).load(function() {
|
||||
updateTableHeaders();
|
||||
});
|
||||
|
||||
$(function() {
|
||||
// This should be executed lastly to ensure correct display of the table header.
|
||||
setTimeout( loadTableHeaders, 250);
|
||||
$(window.parent).load(function() {
|
||||
updateTableHeaders();
|
||||
});
|
||||
@@ -75,7 +75,7 @@ var sorttable = {
|
||||
}
|
||||
|
||||
// work through each column and calculate its type
|
||||
var headrow = tableTheadTRs[0].cells;
|
||||
var headrow = tableTheadTRs[0].children;
|
||||
|
||||
for (var i=0; i<headrow.length; i++) {
|
||||
// manually override the type with a sorttable_type attribute
|
||||
|
||||
Reference in New Issue
Block a user