diff options
author | gorhill <rhill@raymondhill.net> | 2015-08-11 18:48:52 -0400 |
---|---|---|
committer | gorhill <rhill@raymondhill.net> | 2015-08-11 18:48:52 -0400 |
commit | abc7a526da10dadebeb1fb7dc4194b58641803fd (patch) | |
tree | 1e68d8e2cfde94dfbe1f6ac9923adec4026425d0 /src | |
parent | 690421aead701cb3045c1d8913cb85d432e494c3 (diff) | |
download | uBlock-abc7a526da10dadebeb1fb7dc4194b58641803fd.zip uBlock-abc7a526da10dadebeb1fb7dc4194b58641803fd.tar.gz uBlock-abc7a526da10dadebeb1fb7dc4194b58641803fd.tar.bz2 |
code review
Diffstat (limited to 'src')
-rw-r--r-- | src/3p-filters.html | 2 | ||||
-rw-r--r-- | src/js/3p-filters.js | 8 |
2 files changed, 4 insertions, 6 deletions
diff --git a/src/3p-filters.html b/src/3p-filters.html index 5831bef..f19acfb 100644 --- a/src/3p-filters.html +++ b/src/3p-filters.html @@ -49,7 +49,7 @@ <a type="text/plain" target="_blank" href=""></a> <a class="fa" style="display: none;" target="_blank"></a> <a href="" style="display: none;" target="_blank"></a>: <!-- - --><span class="dim"></span><!-- + --><span class="counts dim"></span><!-- --><span class="status unsecure" style="display: none;">http</span><!-- --><span class="status new" style="display: none;" data-i18n="3pExternalListNew"></span><!-- --><span class="status obsolete" style="display: none;" data-i18n="3pExternalListObsolete"></span><!-- diff --git a/src/js/3p-filters.js b/src/js/3p-filters.js index ac6abcf..a3e81b8 100644 --- a/src/js/3p-filters.js +++ b/src/js/3p-filters.js @@ -116,7 +116,7 @@ var renderFilterLists = function() { elem.css('display', ''); } - elem = li.descendants('span:nth-of-type(1)'); + elem = li.descendants('span.counts'); var text = listStatsTemplate .replace('{{used}}', renderNumber(!entry.off && !isNaN(+entry.entryUsedCount) ? entry.entryUsedCount : 0)) .replace('{{total}}', !isNaN(+entry.entryCount) ? renderNumber(entry.entryCount) : '?'); @@ -486,10 +486,8 @@ var renderExternalLists = function() { /******************************************************************************/ var externalListsChangeHandler = function() { - uDom('#externalListsApply').prop( - 'disabled', - this.value.trim() === externalLists - ); + uDom.nodeFromId('externalListsApply').disabled = + uDom.nodeFromId('externalLists').value.trim() === externalLists; }; /******************************************************************************/ |