X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fui%2Fui_input.inc;h=f1fb3691c1d6d45914a4b602ac49e6e0f0001e99;hb=0ad69edb5561aac03a5af49286c37b3350307719;hp=b775ede018e5b8ae68d83ae3f734f3e812043bc3;hpb=75121c41ec3021e630b7de639861ae50ed419a1f;p=fa-stable.git diff --git a/includes/ui/ui_input.inc b/includes/ui/ui_input.inc index b775ede0..f1fb3691 100644 --- a/includes/ui/ui_input.inc +++ b/includes/ui/ui_input.inc @@ -53,7 +53,9 @@ function simple_page_mode($numeric_id = true) foreach (array('Edit', 'Delete') as $m) { foreach ($_POST as $p => $pvar) { if (strpos($p, $m) === 0) { - $selected_id = substr($p, strlen($m)); +// $selected_id = strtr(substr($p, strlen($m)), array('%2E'=>'.')); + unset($_POST['_focus']); // focus on first form entry + $selected_id = quoted_printable_decode(substr($p, strlen($m))); $Ajax->activate('_page_body'); $Mode = $m; return; @@ -95,9 +97,10 @@ function hidden($name, $value=null, $echo=true) //--------------------------------------------------------------------------------- // Submit button. // $async parameter can have 3 values: +// null - fallback button not visible in js enabled mode // false - normal submit via form action // true - when js is on submition via ajax call -// null - fallback button not visible in js enabled mode +// 'process' - ditto with processing indicator in msgbox // function submit($name, $value, $echo=true, $title=false, $async=false) { @@ -106,7 +109,8 @@ function submit($name, $value, $echo=true, $title=false, $async=false) $submit_str = "\n";