From c1f7db9611aa874a74147943e727d5f005c86b13 Mon Sep 17 00:00:00 2001 From: Antoine Abt Date: Mon, 21 Jul 2014 15:48:00 +0200 Subject: [PATCH] Set type=button to avoid forms submit --- src/ol/control/attributioncontrol.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ol/control/attributioncontrol.js b/src/ol/control/attributioncontrol.js index beb2218031..6239585d5d 100644 --- a/src/ol/control/attributioncontrol.js +++ b/src/ol/control/attributioncontrol.js @@ -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);