Clicking on a button control no longer refreshes page

This commit is contained in:
Ian Gilman 2013-08-14 10:39:39 -07:00
parent 967f2e4f32
commit 3272572124

View File

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