Fix the index search clear button appearance on Firefox.
This commit is contained in:
parent
67e75bd2fb
commit
2248e4de16
@ -383,7 +383,10 @@ a[href="javascript:;"] {
|
||||
color: gray;
|
||||
margin-left: -1.25em;
|
||||
}
|
||||
<% if (type === 'crx') { %>
|
||||
/* ``::-webkit-*'' selectors break selector lists on Firefox. */
|
||||
#index-search::-webkit-search-cancel-button,
|
||||
<% } %>
|
||||
#index-search:not([data-searching]) + #index-search-clear {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@ -332,7 +332,12 @@ Index =
|
||||
if Index.isSearching = !!Index.searchInput.value.trim()
|
||||
Index.searchInput.dataset.searching = 1
|
||||
else
|
||||
<% if (type === 'userscript') { %>
|
||||
# XXX https://github.com/greasemonkey/greasemonkey/issues/1571
|
||||
Index.searchInput.removeAttribute 'data-searching'
|
||||
<% } else { %>
|
||||
delete Index.searchInput.dataset.searching
|
||||
<% } %>
|
||||
Index.sort()
|
||||
Index.buildIndex()
|
||||
querySearch: (query) ->
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user