From 95a69c2506035fb3e300cdbd221cb979f403fc04 Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Tue, 1 Mar 2011 18:57:42 +0100 Subject: [PATCH] Corrected customer/suppliers/... editors popups dimensions to display all needed content. --- includes/ui/ui_controls.inc | 11 ++++++----- js/inserts.js | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/includes/ui/ui_controls.inc b/includes/ui/ui_controls.inc index d6533f90..eaaccdca 100644 --- a/includes/ui/ui_controls.inc +++ b/includes/ui/ui_controls.inc @@ -422,13 +422,13 @@ function tabbed_content_end() { */ $popup_editors = array( 'customer' => array('/sales/manage/customers.php?debtor_no=', - 113, _("Customers")), + 113, _("Customers"), 900, 500), 'branch' => array('/sales/manage/customer_branches.php?SelectedBranch=', - 114, _("Branches")), + 114, _("Branches"), 900, 700), 'supplier' => array('/purchasing/manage/suppliers.php?supplier_id=', - 113, _("Suppliers")), + 113, _("Suppliers"), 900, 700), 'item' => array('/inventory/manage/items.php?stock_id=', - 115, _("Items")) + 115, _("Items"), 800, 600) ); /* Bind editors for various selectors. @@ -443,7 +443,8 @@ function set_editor($type, $input, $caller=true) $key = $caller===true ? $popup_editors[$type][1] : $caller; - $Editors[$key] = array( $path_to_root . $popup_editors[$type][0], $input); + $Editors[$key] = array( $path_to_root . $popup_editors[$type][0], $input, + $popup_editors[$type][3], $popup_editors[$type][4]); $help = 'F' . ($key - 111) . ' - '; $help .= $popup_editors[$type][2]; diff --git a/js/inserts.js b/js/inserts.js index a17519ef..5110343e 100644 --- a/js/inserts.js +++ b/js/inserts.js @@ -166,7 +166,7 @@ function callEditor(key) { var el = document.getElementsByName(editors[key][1])[0]; if(_w) _w.close(); // this is really necessary to have window on top in FF2 :/ _w = open(editors[key][0]+el.value+'&popup=1', - "edit","Scrollbars=0,resizable=0,width=800,height=600"); + "edit","Scrollbars=0,resizable=0,width="+editors[key][2]+",height="+editors[key][3]); if (_w.opener == null) _w.opener = self; editors._call = key; // store call point for passBack -- 2.30.2