Rerun bug 4601: memo line not cleared after enter new payment item. @Braath Waate.
[fa-stable.git] / includes / ui / ui_input.inc
index 448bd8f408eb264a1cbfdb60829a8e8451efdaca..6ff977ad096d1eec3c64490e926f6c27e1877c30 100644 (file)
@@ -159,6 +159,7 @@ function submit($name, $value, $echo=true, $title=false, $atype=false, $icon=fal
                                        if ($icon===false) $icon=ICON_ESCAPE; break;
 
                                case 'nonajax':
+                               case 'download':
                                        $atype = false;
                        }
                }
@@ -304,7 +305,7 @@ function button($name, $value, $title=false, $icon=false,  $aspect='')
                if ($value == _("Delete")) // Helper during implementation
                        $icon = ICON_DELETE;
                return "<button type='submit' class='editbutton' name='"
-                       .htmlentities(strtr($name, array('.'=>'=2E', '='=>'=3D',// ' '=>'=20','['=>'=5B'
+                       .html_specials_encode(strtr($name, array('.'=>'=2E', '='=>'=3D',// ' '=>'=20','['=>'=5B'
                        )))
                        ."' value='1'" . ($title ? " title='$title'":" title='$value'")
                        . ($aspect ? " aspect='$aspect'" : '')
@@ -757,7 +758,7 @@ function ref_cells($label, $name, $title=null, $init=null, $params=null, $submit
 
                label_cell($list."<input name='".$name."' "
                        .(check_edit_access($name) ? '' : 'disabled ')
-                       ."value='".@$_POST[$name]."' size=10 maxlength=35>");
+                       ."value='".@$_POST[$name]."' size=16 maxlength=35>");
        }
        else // just wildcard ref field (e.g. for global inquires)
        {