Skip to content
Snippets Groups Projects
Commit 3dd41f5c authored by Piotr Gawron's avatar Piotr Gawron
Browse files

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

Resolve "CLEAR button"

Closes #630

See merge request !562
parents b59a2c90 8a64ba29
No related branches found
No related tags found
2 merge requests!630WIP: Resolve "The privileges of a new user are not saved in some cases",!562Resolve "CLEAR button"
Pipeline #8104 passed
......@@ -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()]);
};
})();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment