mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-02-01 07:31:41 +03:00
Clicking on a button control no longer refreshes page
This commit is contained in:
parent
967f2e4f32
commit
3272572124
@ -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…
x
Reference in New Issue
Block a user