Commit eee80c96 authored by Nigel McNie's avatar Nigel McNie
Browse files

Merged pieforms fix

parent b344e400
......@@ -695,12 +695,14 @@ class Pieform {
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); });";
}
......
Supports Markdown
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