No freelancer matches that search and those filters. Use Clear to see everyone.
+ Nothing matches. Widen your search, or set the filters back to All .
You deal with the freelancer directly. The contract for the work is between you and them, and the terms, the price and the delivery are yours to agree. We are not a party to it — we publish the listings and nothing more; the conversation is between you and the freelancer.
@@ -2047,9 +2043,8 @@
function liveFilters(records) {
var bar = document.getElementById("dirFilters");
var countries = countryNames();
- var clearWrap = bar.querySelector(".dir-clear-wrap");
Array.prototype.slice.call(bar.querySelectorAll(".dir-filter")).forEach(function (node) {
- if (!node.classList.contains("dir-search") && !node.classList.contains("dir-clear-wrap")) {
+ if (!node.classList.contains("dir-search")) {
bar.removeChild(node);
}
});
@@ -2111,8 +2106,7 @@
options.forEach(function (o) { sel.appendChild(new Option(o[1], o[0])); });
wrap.appendChild(lbl);
wrap.appendChild(sel);
- if (clearWrap) bar.insertBefore(wrap, clearWrap);
- else bar.appendChild(wrap);
+ bar.appendChild(wrap);
});
return active;
}
@@ -2149,9 +2143,9 @@
bar.addEventListener("input", function (event) {
if (event.target && event.target.hasAttribute("data-search-box")) applyFilters();
});
- var clear = document.getElementById("dirClear");
- if (clear) {
- clear.addEventListener("click", function () {
+ var emptyReset = document.getElementById("dirEmptyReset");
+ if (emptyReset) {
+ emptyReset.addEventListener("click", function () {
var box = bar.querySelector("[data-search-box]");
if (box) box.value = "";
Array.prototype.forEach.call(bar.querySelectorAll("select"), function (s) { s.value = ""; });
@@ -2166,7 +2160,6 @@
var grid = document.getElementById("dirGrid");
var count = document.getElementById("dirCount");
var empty = document.getElementById("dirEmpty");
- var clear = document.getElementById("dirClear");
if (!bar || !grid) return;
var search = bar.querySelector("[data-search-box]");
@@ -2177,9 +2170,6 @@
bar.hidden = nothing;
if (count) count.hidden = nothing;
- if (clear) {
- clear.hidden = nothing || (!query && !selects.some(function (s) { return s.value; }));
- }
var shown = 0;
cards.forEach(function (card) {