Skip to content

Commit

Permalink
fix #2414
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed Feb 27, 2017
1 parent 2a2cbde commit 798e21d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/epicker.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,15 @@
resize: none;
width: 100%;
}
section > div:first-child > textarea + div {
#resultsetCount {
background-color: #aaa;
bottom: 0;
color: white;
padding: 2px 4px;
position: absolute;
right: 0;
}
section.invalidFilter > div:first-child > textarea + div {
section.invalidFilter #resultsetCount {
background-color: red;
}
section > div:first-child + div {
Expand Down Expand Up @@ -183,7 +183,7 @@
<section>
<div>
<textarea lang="en" dir="ltr" spellcheck="false"></textarea>
<div></div>
<div id="resultsetCount"></div>
</div>
<div><!--
--><button id="preview" type="button">{{preview}}</button><!--
Expand Down
2 changes: 1 addition & 1 deletion src/js/scriptlets/element-picker.js
Original file line number Diff line number Diff line change
Expand Up @@ -999,7 +999,7 @@ var onCandidateChanged = (function() {
elems.push(items[i].elem);
}
}
pickerBody.querySelector('body section textarea + div').textContent = valid ?
pickerBody.querySelector('#resultsetCount').textContent = valid ?
items.length.toLocaleString() :
'E';
dialog.querySelector('section').classList.toggle('invalidFilter', !valid);
Expand Down

0 comments on commit 798e21d

Please sign in to comment.