X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fui%2Fui_input.inc;h=dcd7fe68e0f71438800f8697dafae3be1839572d;hb=bca406d61d1f94c5dcefdbad041b3e0bf77a2919;hp=ef8b9caccc32ee873c8f040de56fb5a088382088;hpb=f564511bdad01d163c41aa4ec7cc80cc136fa262;p=fa-stable.git
diff --git a/includes/ui/ui_input.inc b/includes/ui/ui_input.inc
index ef8b9cac..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 "