Commit e46e3420 authored by Nigel McNie's avatar Nigel McNie Committed by Nigel McNie
Browse files

Removed some of teh cruft introduced in the last set of patches.

parent 26c26810
......@@ -871,7 +871,6 @@ class Pieform {
*/
private function submit_js() {
// @todo nigel should disable all buttons on this form while the submit is happening
$result = <<<EOF
connect($('{$this->name}'), 'onsubmit', function (e) {
......@@ -911,13 +910,6 @@ EOF;
// Add the hidden element for detecting form submission
$result .= " data['pieform_{$this->name}'] = '';\n";
//if ($this->ajaxpostcallback) {
// $result .= " $this->ajaxpostcallback(data);\n}\n";
// return $result;
//}
$action = ($this->action) ? $this->action : basename($_SERVER['PHP_SELF']);
$method = ($this->get_method() == 'get') ? 'GET' : 'POST';
$result .= <<<EOF
......
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