Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: include.postload.js

Issue 5089087581061120: Issue 1867 - Inject "Block element" dialog and overlays in root element to avoid issues with frames… (Closed)
Patch Set: Created Jan. 26, 2015, 10:14 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include.postload.js
===================================================================
--- a/include.postload.js
+++ b/include.postload.js
@@ -295,7 +295,7 @@
overlay.style.zIndex = zIndex;
// elt.parentNode.appendChild(overlay, elt);
- document.body.appendChild(overlay);
+ document.documentElement.appendChild(overlay);
return overlay;
}
@@ -332,7 +332,7 @@
clickHideFiltersDialog.style.setProperty("opacity", "1.0");
};
- document.body.appendChild(clickHideFiltersDialog);
+ document.documentElement.appendChild(clickHideFiltersDialog);
}
// Turn on the choose element to create filter thing
@@ -375,7 +375,7 @@
{
if (clickHideFiltersDialog)
{
- document.body.removeChild(clickHideFiltersDialog);
+ document.documentElement.removeChild(clickHideFiltersDialog);
clickHideFiltersDialog = null;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld