pieforms-commit Mailing List for Pieforms
Status: Alpha
Brought to you by:
oracleshinoda
You can subscribe to this list here.
2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(73) |
Dec
(83) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
(16) |
Feb
(19) |
Mar
(12) |
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
(14) |
Sep
(2) |
Oct
(1) |
Nov
(2) |
Dec
(45) |
2008 |
Jan
(20) |
Feb
(3) |
Mar
(2) |
Apr
|
May
|
Jun
|
Jul
(3) |
Aug
|
Sep
|
Oct
(1) |
Nov
(1) |
Dec
(1) |
2009 |
Jan
(2) |
Feb
(2) |
Mar
|
Apr
(2) |
May
(1) |
Jun
(5) |
Jul
(1) |
Aug
(2) |
Sep
(1) |
Oct
|
Nov
(7) |
Dec
|
2010 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
|
|
|
|
|
|
1
|
2
|
3
|
4
|
5
|
6
|
7
|
8
|
9
|
10
|
11
|
12
|
13
|
14
|
15
|
16
|
17
(1) |
18
|
19
|
20
|
21
|
22
|
23
|
24
|
25
|
26
(1) |
27
|
28
|
29
|
30
|
|
|
|
|
|
|
From: <ora...@us...> - 2007-09-26 06:03:02
|
Revision: 220 http://pieforms.svn.sourceforge.net/pieforms/?rev=220&view=rev Author: oracleshinoda Date: 2007-09-25 23:03:04 -0700 (Tue, 25 Sep 2007) Log Message: ----------- Only output the button setting javascript if the form tags are being output, because it's the only time we can guarantee the dom node with the correct ID will be on the page Modified Paths: -------------- pieforms-php5/trunk/src/pieform.php Modified: pieforms-php5/trunk/src/pieform.php =================================================================== --- pieforms-php5/trunk/src/pieform.php 2007-09-17 12:23:56 UTC (rev 219) +++ pieforms-php5/trunk/src/pieform.php 2007-09-26 06:03:04 UTC (rev 220) @@ -695,12 +695,14 @@ if ($this->data['jsform'] || $this->data['presubmitcallback']) { $result .= '<script type="text/javascript">'; - $result .= "\n" . $this->whichbutton_js(); + if ($outputformtags) { + $result .= "\n" . $this->whichbutton_js(); + } } if ($this->data['jsform']) { $result .= $this->submit_js(); } - else if ($this->data['presubmitcallback']) { + else if ($this->data['presubmitcallback'] && $outputformtags) { $result .= 'connect(\'' . $this->name . '\', \'onsubmit\', ' . 'function() { ' . $this->data['presubmitcallback'] . "('{$this->name}', {$this->name}_btn); });"; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ora...@us...> - 2007-09-17 12:23:54
|
Revision: 219 http://pieforms.svn.sourceforge.net/pieforms/?rev=219&view=rev Author: oracleshinoda Date: 2007-09-17 05:23:56 -0700 (Mon, 17 Sep 2007) Log Message: ----------- Added support for 'showdescriptiononerror' flag - does what it says on the tin. Modified Paths: -------------- pieforms-php5/trunk/src/pieform/renderers/div.php pieforms-php5/trunk/src/pieform/renderers/table.php pieforms-php5/trunk/src/pieform.php Modified: pieforms-php5/trunk/src/pieform/renderers/div.php =================================================================== --- pieforms-php5/trunk/src/pieform/renderers/div.php 2007-08-19 22:11:09 UTC (rev 218) +++ pieforms-php5/trunk/src/pieform/renderers/div.php 2007-09-17 12:23:56 UTC (rev 219) @@ -74,7 +74,7 @@ // Description - optional description of the element, or other note that should be visible // on the form itself (without the user having to hover over contextual help - if (!empty($rawelement['description'])) { + if ((!$form->has_errors() || $form->get_property('showdescriptiononerror')) && !empty($rawelement['description'])) { $result .= '<div class="description"> ' . Pieform::hsc($rawelement['description']) . "</div>"; } Modified: pieforms-php5/trunk/src/pieform/renderers/table.php =================================================================== --- pieforms-php5/trunk/src/pieform/renderers/table.php 2007-08-19 22:11:09 UTC (rev 218) +++ pieforms-php5/trunk/src/pieform/renderers/table.php 2007-09-17 12:23:56 UTC (rev 219) @@ -99,7 +99,7 @@ // Description - optional description of the element, or other note that should be visible // on the form itself (without the user having to hover over contextual help - if (!empty($rawelement['description'])) { + if ((!$form->has_errors() || $form->get_property('showdescriptiononerror')) && !empty($rawelement['description'])) { $result .= "\t<tr>\n\t\t<td colspan=\"2\" class=\"description\">"; $result .= $rawelement['description']; $result .= "</td>\n\t</tr>\n"; Modified: pieforms-php5/trunk/src/pieform.php =================================================================== --- pieforms-php5/trunk/src/pieform.php 2007-08-19 22:11:09 UTC (rev 218) +++ pieforms-php5/trunk/src/pieform.php 2007-09-17 12:23:56 UTC (rev 219) @@ -292,6 +292,10 @@ // Whether to add * markers after each required field 'requiredmarker' => false, + + // Whether to show the description as well as the error message + // when displaying errors + 'showdescriptiononerror' => true, ); $data = array_merge($formdefaults, $formconfig, $data); $this->data = $data; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |