jscott1989 / Veto
Veto Form Validation Library.
Clone this repository (size: 194.5 KB): HTTPS / SSH
$ hg clone http://bitbucket.org/jscott1989/veto/
| commit 104: | 6f194493add9 |
| parent 103: | e083821bf3da |
| branch: | default |
Added type=submit to submitButtons so they work in in IE6/7
Changed (Δ54 bytes):
raw changeset »
lib/vtForm.class.php (2 lines added, 2 lines removed)
Up to file-list lib/vtForm.class.php:
273 |
273 |
return ($this->configuration['enable_javascript'] ? $this->javascript() : '') . build_html_tag('form', merge_html_attributes( |
274 |
274 |
array( 'name' => $this->name, |
275 |
275 |
'id' => 'vt_' . $this->name, |
276 |
'onSubmit' => 'if (vt_' . prepare_javascript_variable($this->name) . ' |
|
276 |
'onSubmit' => 'if (vt_' . prepare_javascript_variable($this->name) . '_form) return vt_' . prepare_javascript_variable($this->name) . '_form.validate()', |
|
277 |
277 |
'method' => $this->configuration['method'], |
278 |
278 |
'action' => $this->configuration['action']), $attributes), |
279 |
279 |
null, false); |
569 |
569 |
* @return String The HTML for a submit button |
570 |
570 |
*/ |
571 |
571 |
function submitButton($attributes = array()) { |
572 |
return build_html_tag('button', |
|
572 |
return build_html_tag('button', merge_html_attributes(array('type' => 'submit'),$attributes), 'Submit'); |
|
573 |
573 |
} |
574 |
574 |
} |
575 |
575 |
