summaryrefslogtreecommitdiff
path: root/src/client/view
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/view')
-rw-r--r--src/client/view/search.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/client/view/search.js b/src/client/view/search.js
index 35edd8e7..c68f5098 100644
--- a/src/client/view/search.js
+++ b/src/client/view/search.js
@@ -67,11 +67,14 @@ function init() {
}
-
+function clear() {
+ search.val('');
+}
return {
focus: focus,
init: init,
+ clear: clear,
};
}
);