From 5fbfecdb2f9dc690eec4a03569edef624fd6f452 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 --- 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 f38870cc48..df9b82d962 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', ''); @@ -196,7 +191,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