right-sidebar: Added clear-search button on user-list searchbar.

A clear-search option to clear the user-list searchbox has been added.
This feature was present in the main searchbar but absent elsewhere.
Fix a part of #3716.
This commit is contained in:
Raghav Jajodia
2017-02-18 21:38:28 +05:30
committed by Tim Abbott
parent 233c5eb255
commit c3dbce810e
4 changed files with 63 additions and 3 deletions

View File

@@ -99,7 +99,7 @@ exports.initialize = function () {
// Some of these functions don't actually need to be exported,
// but the code was moved here from elsewhere, and it would be
// more work to re-order everything and make them private.
$('#search_exit' ).on('click', exports.clear_search);
$('#search_exit').on('click', exports.clear_search);
var query = $('#search_query');
query.on('focus', exports.focus_search)