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

Unified Diff: include.postload.js

Issue 6275291261435904: issue 1122 - after canceling "Click hide" popup still shows "click hide" active (Closed)
Patch Set: Created Sept. 4, 2014, 12:21 p.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
@@ -255,7 +255,14 @@
clickHide_mouseClick(e);
else if (!e.ctrlKey && !e.altKey && !e.shiftKey && e.keyCode == 27 /*DOM_VK_ESCAPE*/)
{
- clickHide_deactivate();
+ ext.backgroundPage.sendMessage(
+ {
+ type: "forward",
+ payload:
+ {
+ type: "clickhide-deactivate"
+ }
+ });
e.preventDefault();
e.stopPropagation();
}
@@ -556,9 +563,8 @@
// Explicitly get rid of currentElement
if (msg.remove && currentElement && currentElement.parentNode)
currentElement.parentNode.removeChild(currentElement);
-
- clickHide_deactivate();
}
+ clickHide_deactivate();
break;
default:
sendResponse({});
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld