Commit e1e88b1f authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Pieforms: control replacement of form content after ajax request without reloadFormOnReply property

parent 692f9b8f
......@@ -692,7 +692,6 @@ class Pieform {/*{{{*/
'globalJsErrorCallback' => $this->data['globaljserrorcallback'],
'postSubmitCallback' => $this->data['postsubmitcallback'],
'newIframeOnSubmit' => $this->data['newiframeonsubmit'],
'reloadFormOnReply' => $this->data['reloadformonreply'],
));
$result .= "<script type=\"text/javascript\">new Pieform($data);</script>\n";
}
......@@ -1344,11 +1343,6 @@ EOF;
// submitted.
'newiframeonsubmit' => false,
// Whether the contents of the form should be reloaded on the page when
// a reply is received from the server. If false, error messages will
// not automatically be displayed inside the form.
'reloadformonreply' => true,
// The URL where pieforms.js and other related pieforms javascript
// files can be accessed. Best specified as an absolute path in
// pieform_configure()
......
......@@ -170,7 +170,7 @@ function Pieform(data) {//{{{
PieformManager.signal('onreply', self.data.name);
if (self.data.reloadFormOnReply) {
if (typeof(data.replaceHTML) == 'string') {
var tmp = DIV();
tmp.innerHTML = data.replaceHTML;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment