From d7fa4a900e34aa5b9892dc47cd5abac123763a15 Mon Sep 17 00:00:00 2001 From: Sarjuuk Date: Tue, 7 May 2024 19:11:39 +0200 Subject: [PATCH] Admin/Screenshots * whelp, didn't see the onKeydown handler for the input field * fix the fix in bf06c418d4d5088f03793142b534296bb77de4e2 * allow "ArrowUp", "ArrowDown" and "-" as inputs * also fix search by pressing --- template/pages/admin/screenshots.tpl.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/template/pages/admin/screenshots.tpl.php b/template/pages/admin/screenshots.tpl.php index de9527f8..be14dae2 100644 --- a/template/pages/admin/screenshots.tpl.php +++ b/template/pages/admin/screenshots.tpl.php @@ -31,7 +31,7 @@ endforeach; ?> - # + # » Search by Page @@ -108,12 +108,12 @@ endforeach; $WH.ge('pagetypeid').onkeydown = function(e) { e = $WH.$E(e); - var validKeys = [8, 9, 13, 35, 36, 37, 39, 46, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57]; + var validKeys = [8, 9, 13, 35, 36, 37, 38, 39, 40, 46, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 173]; if (!e.ctrlKey && $WH.in_array(validKeys, e.keyCode) == -1) return false; if (e.keyCode == 13 && this.value != '') - ss_Manage(); + ss_Manage(null, $('#pagetype').val(), parseInt($('#pagetypeid').val()) || 0); return true; }