Set type=button to avoid forms submit

This commit is contained in:
Antoine Abt
2014-07-21 15:48:00 +02:00
parent a314203e12
commit c1f7db9611

View File

@@ -96,7 +96,8 @@ ol.control.Attribution = function(opt_options) {
*/
this.labelSpan_ = label;
var button = goog.dom.createDom(goog.dom.TagName.BUTTON, {
'class': 'ol-has-tooltip'
'class': 'ol-has-tooltip',
'type': 'button'
}, this.labelSpan_);
goog.dom.appendChild(button, tip);