mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-28 17:02:04 +03:00
Image manager: extracted lang text, updated anims and search cancel
- Updated search cancel to only show when a search is active. - Updated gallery image load animation to be much faster.
This commit is contained in:
@ -53,6 +53,7 @@ export class ImageManager extends Component {
|
||||
this.searchForm.addEventListener('submit', event => {
|
||||
this.resetListView();
|
||||
this.loadGallery();
|
||||
this.cancelSearch.toggleAttribute('hidden', !this.searchInput.value);
|
||||
event.preventDefault();
|
||||
});
|
||||
|
||||
@ -201,6 +202,7 @@ export class ImageManager extends Component {
|
||||
|
||||
resetSearchView() {
|
||||
this.searchInput.value = '';
|
||||
this.cancelSearch.toggleAttribute('hidden', true);
|
||||
}
|
||||
|
||||
resetEditForm() {
|
||||
|
Reference in New Issue
Block a user