]>
BookStack Code Mirror - bookstack/blobdiff - resources/js/components/entity-selector.js
projects
/
bookstack
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch '3535-group-sync-fix' into development
[bookstack]
/
resources
/
js
/
components
/
entity-selector.js
diff --git
a/resources/js/components/entity-selector.js
b/resources/js/components/entity-selector.js
index 6d9d06f860329b402c9166db51ffc646537ca988..e2596998aedea01a105b40496f1909c0d6b60f20 100644
(file)
--- a/
resources/js/components/entity-selector.js
+++ b/
resources/js/components/entity-selector.js
@@
-87,6
+87,16
@@
class EntitySelector {
}
}
+ reset() {
+ this.searchInput.value = '';
+ this.showLoading();
+ this.initialLoad();
+ }
+
+ focusSearch() {
+ this.searchInput.focus();
+ }
+
showLoading() {
this.loading.style.display = 'block';
this.resultsContainer.style.display = 'none';