mirror of
https://github.com/nextcloud/passman.git
synced 2025-02-27 00:43:02 +08:00
Fixed Missing Remove function for searchfield-reset-button
Signed-off-by: Felix Nüsse <Felix.nuesse@t-online.de>
This commit is contained in:
parent
677ae51b42
commit
c7c54ad299
1 changed files with 6 additions and 0 deletions
|
@ -329,6 +329,12 @@
|
|||
|
||||
//searchboxfix
|
||||
var native_search = document.getElementById("searchbox");
|
||||
native_search.nextElementSibling.addEventListener('click', function (e) {
|
||||
$scope.$apply(function () {
|
||||
$scope.filterOptions.filterText="";
|
||||
});
|
||||
});
|
||||
|
||||
native_search.classList.remove('hidden');
|
||||
native_search.addEventListener('keypress', function (e) {
|
||||
if(e.keyCode == 13){
|
||||
|
|
Loading…
Reference in a new issue