From 862ae3280be77515d03dd5bed7bbb2bc67e554bd Mon Sep 17 00:00:00 2001 From: Koen Reefman Date: Tue, 31 Jul 2018 10:27:50 +0000 Subject: [PATCH] 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 --- APPL/Localscripts/resultset_table_v2.js | 23 ++++------------------- 1 file changed, 4 insertions(+), 19 deletions(-) diff --git a/APPL/Localscripts/resultset_table_v2.js b/APPL/Localscripts/resultset_table_v2.js index a0bb43bce4..7365c8db1d 100644 --- a/APPL/Localscripts/resultset_table_v2.js +++ b/APPL/Localscripts/resultset_table_v2.js @@ -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(""); 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(""); thisTR.inlineVisible = true; - var thisTRParent = thisTR.parentNode; // Parent node kan ook zijn - // Indien de tabel een heeft dan de parent 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");