From 5dc6bce758ea1dd5b76177261f9b1540219f5ad9 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 22 Jan 2021 15:20:00 +0000 Subject: [PATCH] Bug 26755: Make the guarantor search popup taller This patch changes the dimensions of the popup window in which guarantors are chosen during the patron edit process. The patch also removes an obsolete function delcaration for "Dopop" which is unused. To test, apply the patch and open a "child" type patron account for editing. Click the "Add guarantor" button. This should trigger a popup window. Eyeball the size of the window, you'll be able to tell that it is exactly 800 pixels wide. Signed-off-by: Barbara Johnson Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart (cherry picked from commit 5fbfecdb2f9dc690eec4a03569edef624fd6f452) Signed-off-by: Fridolin Somers (cherry picked from commit cc4f8b283fae830d631ffc1148179064f6f24872) Signed-off-by: Andrew Fuerste-Henry --- koha-tmpl/intranet-tmpl/prog/js/members.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/members.js b/koha-tmpl/intranet-tmpl/prog/js/members.js index b596717363..19657737c9 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/members.js +++ b/koha-tmpl/intranet-tmpl/prog/js/members.js @@ -34,11 +34,6 @@ function check_form_borrowers(nav){ } } -function Dopop(link) { -// // var searchstring=document.form.value[i].value; - var newin=window.open(link,'popup','width=600,height=400,resizable=no,toolbar=false,scrollbars=no,top'); -} - function clear_entry(node) { var original = $(node).parent(); $("textarea", original).attr('value', ''); @@ -195,7 +190,7 @@ $(document).ready(function(){ $('body').on('click', '#guarantor_search', function(e) { e.preventDefault(); - var newin = window.open('guarantor_search.pl','popup','width=600,height=400,resizable=no,toolbar=false,scrollbars=yes,top'); + var newin = window.open('guarantor_search.pl','popup','width=800,height=600,resizable=no,toolbar=false,scrollbars=yes,top'); }); $('#guarantor_relationships').on('click', '.guarantor_cancel', function(e) { -- 2.39.5