Corrected customer/suppliers/... editors popups dimensions to display all needed...
authorJanusz Dobrowolski <janusz@frontaccouting.eu>
Tue, 1 Mar 2011 17:57:42 +0000 (18:57 +0100)
committerJanusz Dobrowolski <janusz@frontaccouting.eu>
Tue, 1 Mar 2011 17:57:42 +0000 (18:57 +0100)
includes/ui/ui_controls.inc
js/inserts.js

index d6533f901722f5999ef7d81386932fea61d954df..eaaccdca31110b3494c0651cd5ee025a083e8f3e 100644 (file)
@@ -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];
index a17519ef36a2298134f7b305c72a042dab62e0f0..5110343e6b37b4ca8d7ce32ef4433f8eac3ba891 100644 (file)
@@ -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