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

Unified Diff: popup.js

Issue 29539848: Noissue - Close popup after opening options page (Closed) Base URL: https://hg.adblockplus.org/adblockpluschrome/
Patch Set: Created Sept. 8, 2017, 7:38 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: popup.js
===================================================================
--- a/popup.js
+++ b/popup.js
@@ -72,17 +72,17 @@
document.getElementById("clickhide").addEventListener(
"click", activateClickHide, false
);
document.getElementById("clickhide-cancel").addEventListener(
"click", cancelClickHide, false
);
document.getElementById("options").addEventListener("click", () =>
{
- ext.showOptions();
+ ext.showOptions(ext.closePopup);
}, false);
// Set up collapsing of menu items
for (let collapser of document.getElementsByClassName("collapse"))
{
collapser.addEventListener("click", toggleCollapse, false);
if (!Prefs[collapser.dataset.option])
{
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld