If you have some reCaptcha popup or weird behavior when submit/edit issues let us know, we enabled spam detection that can flag false positives.

Commit 3dd41f5c authored by Piotr Gawron's avatar Piotr Gawron

Merge branch '630-clear-button' into 'master'

Resolve "CLEAR button"

Closes #630

See merge request !562
parents b59a2c90 8a64ba29
Pipeline #8104 passed with stage
in 11 minutes and 34 seconds
......@@ -153,6 +153,7 @@ TopMenu.prototype._createGui = function () {
var clearButton = Functions.createElement({
type: "button",
name: "clearButton",
className: "minerva-overview-button",
content: "<i class='fa fa-times' style='font-size:18px; font-weight:300; padding-right:10px;'></i>CLEAR",
xss: false
......@@ -209,7 +210,8 @@ TopMenu.prototype.init = function () {
var clearButton = self.getControlElement(PanelControlElementType.MENU_CLEAR_BUTTON);
clearButton.onclick = (function () {
return function () {
return self.getMap().clearDbOverlays();
$(commentCheckbox).prop('checked', false);
return Promise.all([self.getMap().clearDbOverlays(), commentCheckbox.onclick()]);
};
})();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment