X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fui%2Fui_input.inc;h=59a3676ef5664ed7ccc7bd004411ac37c2c824aa;hb=2bcdab793e406bb5a44d2c4e079ec7cc2a1aa857;hp=bdb7e94545bba833171ea38d60b22a969facea16;hpb=5ac9ea61baac0cf298b07317051da51e781645b7;p=fa-stable.git diff --git a/includes/ui/ui_input.inc b/includes/ui/ui_input.inc index bdb7e945..59a3676e 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 "