From 6dd5c832a2c9dadc518754a9839b7494950e8484 Mon Sep 17 00:00:00 2001 From: gorhill Date: Sat, 15 Aug 2015 09:24:55 -0400 Subject: [PATCH] this really fixes #599, #600 --- src/about.html | 10 +++++----- src/js/dashboard-common.js | 22 ++++++++++------------ 2 files changed, 15 insertions(+), 17 deletions(-) diff --git a/src/about.html b/src/about.html index cf7256d9f..02d6a2ee0 100644 --- a/src/about.html +++ b/src/about.html @@ -12,13 +12,13 @@

diff --git a/src/js/dashboard-common.js b/src/js/dashboard-common.js index e34e18ac1..ba7660edf 100644 --- a/src/js/dashboard-common.js +++ b/src/js/dashboard-common.js @@ -31,7 +31,7 @@ self.uBlockDashboard = self.uBlockDashboard || {}; // Helper for client panes: // Remove literal duplicate lines from a set based on another set. -self.uBlock.mergeNewLines = function(text, newText) { +self.uBlockDashboard.mergeNewLines = function(text, newText) { var lineBeg, textEnd, lineEnd; var line, hash, bucket; @@ -103,14 +103,12 @@ self.uBlock.mergeNewLines = function(text, newText) { /******************************************************************************/ -(function() { - // Open links in the proper window - uDom('a').attr('target', '_blank'); - uDom('a[href*="dashboard.html"]').attr('target', '_parent'); - uDom('.whatisthis').on('click', function() { - uDom(this) - .parent() - .descendants('.whatisthis-expandable') - .toggleClass('whatisthis-expanded'); - }); -})(); +// Open links in the proper window +uDom('a').attr('target', '_blank'); +uDom('a[href*="dashboard.html"]').attr('target', '_parent'); +uDom('.whatisthis').on('click', function() { + uDom(this) + .parent() + .descendants('.whatisthis-expandable') + .toggleClass('whatisthis-expanded'); +});