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