From 2d24f269f5692ca333d55381e337a5a90a1d1eff Mon Sep 17 00:00:00 2001 From: Phil Ringnalda Date: Tue, 27 Jun 2023 15:34:59 -0700 Subject: [PATCH] Bug 34097: Prevent clicking ellipsis for dateaccessioned plugin from scrolling up Test plan: 1. Find a record with several items (in ktd "MacLaren's Gaelic self-taught" will do nicely 2. Click the Edit button next to one of the items 3. Click the "..." to the right of "d - Date acquired" and verify that the page doesn't scroll up to the top, and that the current date is inserted in the field 4. Click the "..." to the right of "w - Price effective from" and verify that the page doesn't scroll up and the current date is inserted Signed-off-by: Sam Lau Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi (cherry picked from commit 3824547e5c92328ae0bf54939ec0315b1cbfd98f) Signed-off-by: Martin Renvoize --- cataloguing/value_builder/dateaccessioned.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/cataloguing/value_builder/dateaccessioned.pl b/cataloguing/value_builder/dateaccessioned.pl index 29aee40581..0c14b96f11 100755 --- a/cataloguing/value_builder/dateaccessioned.pl +++ b/cataloguing/value_builder/dateaccessioned.pl @@ -45,6 +45,7 @@ function Focus$function_name(event) { function Click$function_name(event) { set_to_today(event.data.id, 1); + return false; } function set_to_today( id, force ) { -- 2.39.5