projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Wrong email-adress field taken when emailing documents [0000035].
[fa-stable.git]
/
includes
/
ui
/
ui_input.inc
diff --git
a/includes/ui/ui_input.inc
b/includes/ui/ui_input.inc
index b775ede018e5b8ae68d83ae3f734f3e812043bc3..f1fb3691c1d6d45914a4b602ac49e6e0f0001e99 100644
(file)
--- 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) {
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;
$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:
//---------------------------------------------------------------------------------
// 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
// 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)
{
//
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 = "<input type=\"submit\" class=\""
.($async ? 'ajaxsubmit' : 'inputsubmit')
."\""
$submit_str = "<input type=\"submit\" class=\""
.($async ? 'ajaxsubmit' : 'inputsubmit')
."\""
- .($async === null ? (in_ajax() ? " style='display:none;'" : ' fallback="1"' ): '')
+ .($async === null ? (in_ajax() ? " style='display:none;'" : ' aspect="fallback"' ):
+ ($async === 'process' ? 'aspect="process"' : '') )
." name=\"$name\" id=\"$name\" value=\"$value\""
.($title ? " title='$title'" : '')
.">\n";
." name=\"$name\" id=\"$name\" value=\"$value\""
.($title ? " title='$title'" : '')
.">\n";