mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 05:06:09 +03:00
Merge pull request #184 from iangilman/form
Clicking on a button control no longer refreshes page
This commit is contained in:
commit
d310cc3029
@ -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 );
|
||||||
|
Loading…
Reference in New Issue
Block a user