this really fixes #599, #600

This commit is contained in:
gorhill 2015-08-15 09:24:55 -04:00
parent 32b1f4ea86
commit 6dd5c832a2
2 changed files with 15 additions and 17 deletions

View File

@ -12,13 +12,13 @@
<p id="aboutNameVer"></p>
<ul>
<li><a href="https://github.com/gorhill/uBlock/releases" target="_blank" data-i18n="aboutChangelog"></a>
<li><a href="https://github.com/gorhill/uBlock/wiki" target="_blank" data-i18n="aboutWiki"></a>
<li><a href="https://github.com/gorhill/uBlock" target="_blank" data-i18n="aboutCode"></a>
<li><a href="https://github.com/gorhill/uBlock/releases" data-i18n="aboutChangelog"></a>
<li><a href="https://github.com/gorhill/uBlock/wiki" data-i18n="aboutWiki"></a>
<li><a href="https://github.com/gorhill/uBlock" data-i18n="aboutCode"></a>
<li><span data-i18n="aboutContributors"></span>
<ul>
<li><a href="https://github.com/gorhill/uBlock/graphs/contributors" target="_blank">Github</a>
<li><a href="https://crowdin.net/project/ublock" target="_blank">Crowdin</a>
<li><a href="https://github.com/gorhill/uBlock/graphs/contributors">Github</a>
<li><a href="https://crowdin.net/project/ublock">Crowdin</a>
</ul>
<li><a href="http://fontawesome.io" target="_blank">Font Awesome by Dave Gandy</a>
</ul>

View File

@ -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');
});