UWVA#54183 code ingekort, wellicht lost dit het op dat inline opdrachten in IE11 onder de melding uitgeklapt worden
svn path=/Website/branches/v2018.1/; revision=38679
This commit is contained in:
@@ -141,18 +141,6 @@ function largerWhenInIFrame()
|
||||
FcltMgr.resized(window, { largerOnly: true });
|
||||
}
|
||||
|
||||
function getIndexCorr(thisTbody)
|
||||
{
|
||||
var corr = 0;
|
||||
$(thisTbody).prevAll('thead, tbody').each(function() { // tfoot is indexed after the tbody
|
||||
// If we want to insertrow on a TBODY we need to correct the rowindex
|
||||
// by subtracting the amount of rows in the previous tbodies & thead's.
|
||||
if ($(this).length)
|
||||
corr += $(this).length;
|
||||
});
|
||||
return corr;
|
||||
}
|
||||
|
||||
function hideInlineDetails(thisTR)
|
||||
{
|
||||
var rowData = eval('(' + thisTR.getAttribute("ROWDATA") + ')');
|
||||
@@ -162,8 +150,7 @@ function hideInlineDetails(thisTR)
|
||||
else
|
||||
$(thisTR).find(".inlinedetails").html("<i class='fa fa-fw fa-plus-square-o'>");
|
||||
var thisTRParent = thisTR.parentNode; // TBODY of TABLE
|
||||
var indexCorr = (thisTRParent.nodeName == "TBODY" ? getIndexCorr(thisTRParent) : 0);
|
||||
thisTRParent.deleteRow(thisTR.rowIndex + 1 - indexCorr); // De volgende rij verwijderen.
|
||||
thisTRParent.deleteRow(thisTR.sectionRowIndex + 1); // De volgende rij verwijderen.
|
||||
thisTR.inlineVisible = false;
|
||||
return false;
|
||||
}
|
||||
@@ -184,11 +171,9 @@ function showInlineDetails(thisTD, strfnURL, position)
|
||||
$(thisTR).find(".inlinedetails").toggleClass("closed");
|
||||
$(thisTR).find(".inlinedetails").html("<i class='fa fa-fw fa-minus-square-o'>");
|
||||
thisTR.inlineVisible = true;
|
||||
var thisTRParent = thisTR.parentNode; // Parent node kan ook <tbody> zijn
|
||||
// Indien de tabel een <tbody> heeft dan de parent <table> pakken.
|
||||
var indexCorr = (thisTRParent.nodeName == "TBODY" ? getIndexCorr(thisTRParent) : 0);
|
||||
var newRow = thisTRParent.insertRow(thisTR.rowIndex + 1 - indexCorr); // De nieuwe rij erna toevoegen.
|
||||
newRow.id = thisTRid + "inline"
|
||||
var thisTRParent = thisTR.parentNode; // TBODY of TABLE
|
||||
var newRow = thisTRParent.insertRow(thisTR.sectionRowIndex + 1); // De nieuwe rij erna toevoegen.
|
||||
newRow.id = thisTRid + "inline";
|
||||
newRow.insertCell(0);
|
||||
var theCell = newRow.insertCell(1);
|
||||
theCell.innerHTML = L("lcl_shared_loading");
|
||||
|
||||
Reference in New Issue
Block a user