-
+
No results found
-
Try different keywords or browse by category to find what you're looking for.
-
@@ -1025,6 +1025,31 @@ function bindEvents() {
// Grid click delegation
if (DOM.grid) {
DOM.grid.addEventListener('click', (e) => {
+ const clearBtn = e.target.closest('#clearSearchEmpty');
+ if (clearBtn) {
+ if (DOM.search) {
+ DOM.search.value = '';
+ AppState.search = '';
+ AppState.page = 0;
+ if (DOM.clearSearch) DOM.clearSearch.style.display = 'none';
+ renderGrid();
+ DOM.search.focus();
+ }
+ return;
+ }
+ const clearBtn = e.target.closest('#clearSearchEmpty');
+ if (clearBtn) {
+ if (DOM.search) {
+ DOM.search.value = '';
+ AppState.search = '';
+ AppState.page = 0;
+ if (DOM.clearSearch) DOM.clearSearch.style.display = 'none';
+ renderGrid();
+ DOM.search.focus();
+ }
+ return;
+ }
+
const wlBtn = e.target.closest('.watch-later-btn');
if (wlBtn) {
e.stopPropagation();