[Pieforms-commit] SF.net SVN: pieforms: [103] pieforms-php5/trunk/src/pieform.php
Status: Alpha
Brought to you by:
oracleshinoda
|
From: <ora...@us...> - 2006-12-18 01:11:25
|
Revision: 103
http://svn.sourceforge.net/pieforms/?rev=103&view=rev
Author: oracleshinoda
Date: 2006-12-17 17:11:25 -0800 (Sun, 17 Dec 2006)
Log Message:
-----------
Actually make multiplebutton ajax submit work reasonably well now...
Modified Paths:
--------------
pieforms-php5/trunk/src/pieform.php
Modified: pieforms-php5/trunk/src/pieform.php
===================================================================
--- pieforms-php5/trunk/src/pieform.php 2006-12-18 00:41:26 UTC (rev 102)
+++ pieforms-php5/trunk/src/pieform.php 2006-12-18 01:11:25 UTC (rev 103)
@@ -783,10 +783,13 @@
return $function($element, $this);
}
$global = ($this->method == 'get') ? $_GET : $_POST;
- if (!empty($element['ajaxmessages']) && isset($global[$element['name']])) {
+ // If the element is a submit element and has its value in the request, return it
+ // Otherwise, we don't return the value if the form has been submitted, as they
+ // aren't normally returned using a standard form.
+ if (isset($element['value']) && !empty($element['ajaxmessages']) && isset($global[$element['name']])) {
return $element['value'];
}
- if (isset($element['value'])) {
+ else if (isset($element['value']) && (!$this->is_submitted() || (empty($element['ajaxmessages'])))) {
return $element['value'];
}
else if (isset($global[$element['name']]) && $element['type'] != 'submit') {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|