X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fui%2Fui_input.inc;h=dcd7fe68e0f71438800f8697dafae3be1839572d;hb=7124250802b8c978f3ad690f48d5130ba79dac30;hp=ed0e05951c333e970187de8ed512bbf2a6d59a2f;hpb=8ffddf50ffbe93672c769e2cf0501d0f9125e2a0;p=fa-stable.git diff --git a/includes/ui/ui_input.inc b/includes/ui/ui_input.inc index ed0e0595..dcd7fe68 100644 --- a/includes/ui/ui_input.inc +++ b/includes/ui/ui_input.inc @@ -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; } } @@ -215,9 +216,9 @@ function submit_add_or_update($add=true, $title=false, $async=false, $clone=fals elseif ($async === 'upgrade') { $async = 'default nonajax process'; $cancel = 'cancel'; } - else if ($async === 'default') + elseif ($async === 'default') $cancel = true; - else if ($async === 'cancel') + elseif ($async === 'cancel') $async = true; if ($add) @@ -287,7 +288,7 @@ function set_icon($icon, $title=false) global $path_to_root; if (basename($icon) === $icon) // standard icons does not contain path separator $icon = "$path_to_root/themes/".user_theme()."/images/$icon"; - return "\n"; + return "\n"; } function button($name, $value, $title=false, $icon=false, $aspect='') @@ -304,7 +305,7 @@ function button($name, $value, $title=false, $icon=false, $aspect='') if ($value == _("Delete")) // Helper during implementation $icon = ICON_DELETE; return "