aboutsummaryrefslogtreecommitdiffstats
path: root/core/search/js/search.js
diff options
context:
space:
mode:
Diffstat (limited to 'core/search/js/search.js')
-rw-r--r--core/search/js/search.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/search/js/search.js b/core/search/js/search.js
index 4dd29ef917f..44a69842374 100644
--- a/core/search/js/search.js
+++ b/core/search/js/search.js
@@ -405,6 +405,10 @@ $(document).ready(function() {
OC.Search = new OCA.Search($('#searchbox'), $('#searchresults'));
});
}
+ $('#searchbox + .icon-close-white').click(function() {
+ OC.Search.clear();
+ $('#searchbox').focus();
+ });
});
/**