[Pieforms-commit] SF.net SVN: pieforms: [275] pieforms-php5/trunk/src
Status: Alpha
Brought to you by:
oracleshinoda
From: <ora...@us...> - 2008-01-03 09:10:56
|
Revision: 275 http://pieforms.svn.sourceforge.net/pieforms/?rev=275&view=rev Author: oracleshinoda Date: 2008-01-03 01:10:57 -0800 (Thu, 03 Jan 2008) Log Message: ----------- Fix a problem with jsforms in opera - data.goto is apparently illegal because goto is reserved. Modified Paths: -------------- pieforms-php5/trunk/src/pieform.php pieforms-php5/trunk/src/static/core/pieforms.js Modified: pieforms-php5/trunk/src/pieform.php =================================================================== --- pieforms-php5/trunk/src/pieform.php 2008-01-03 09:10:27 UTC (rev 274) +++ pieforms-php5/trunk/src/pieform.php 2008-01-03 09:10:57 UTC (rev 275) @@ -390,7 +390,7 @@ throw new PieformException('Cancel element "' . $element['name'] . '" has no page to go to'); } if ($this->submitted_by_js) { - $this->json_reply(PIEFORM_CANCEL, array('goto' => $element['goto']), false); + $this->json_reply(PIEFORM_CANCEL, array('location' => $element['goto']), false); } header('HTTP/1.1 303 See Other'); header('Location:' . $element['goto']); Modified: pieforms-php5/trunk/src/static/core/pieforms.js =================================================================== --- pieforms-php5/trunk/src/static/core/pieforms.js 2008-01-03 09:10:27 UTC (rev 274) +++ pieforms-php5/trunk/src/static/core/pieforms.js 2008-01-03 09:10:57 UTC (rev 275) @@ -166,7 +166,7 @@ window.pieformHandlers[self.data.name] = function(data) { // If canceling the form, redirect away if (data.returnCode == -2) { - window.location = data.goto; + window.location = data.location; return; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |