Merge pull request #184 from iangilman/form

Clicking on a button control no longer refreshes page
This commit is contained in:
iangilman 2013-08-16 10:12:35 -07:00
commit d310cc3029

View File

@ -47,6 +47,12 @@
controls: [] controls: []
}, options ); }, options );
// Disable the form's submit; otherwise button clicks and return keys
// can trigger it.
this.container.onsubmit = function() {
return false;
};
if( this.element ){ if( this.element ){
this.element = $.getElement( this.element ); this.element = $.getElement( this.element );
this.element.appendChild( this.container ); this.element.appendChild( this.container );