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

Unified Diff: include.postload.js

Issue 5845725862690816: Issue 2279 - Close "Block element" dialog before opening a new one (Closed)
Patch Set: Created April 8, 2015, 8:43 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
@@ -330,6 +330,13 @@
// on whether the user actually wants these filters
function clickHide_rulesPending() {
clickHide_activated = false;
+
+ if (clickHideFiltersDialog)
+ {
+ document.documentElement.removeChild(clickHideFiltersDialog);
+ clickHideFiltersDialog = null;
+ }
+
document.removeEventListener("mousedown", clickHide_stopPropagation, true);
document.removeEventListener("mouseup", clickHide_stopPropagation, true);
document.removeEventListener("mouseenter", clickHide_stopPropagation, true);
@@ -344,12 +351,6 @@
{
clickHide_rulesPending();
- if (clickHideFiltersDialog)
- {
- document.documentElement.removeChild(clickHideFiltersDialog);
- clickHideFiltersDialog = null;
- }
-
clickHide_filters = null;
lastRightClickEvent = 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