Commit 4359c79a authored by Maxim's avatar Maxim
Browse files

Bug fix with remove btn on the map

parent 89322be7
......@@ -402,8 +402,8 @@
$("body").on("click", ".removeFilterBtn", function () {
var className = $(this).parent().parent().attr("class");
var filterId = "#panel_" + className;
var filter = className.replace("gm_", "gm:").replace("_id", "");
var filterId = "#panel_" + className.replace(" col-xs-12", "");
var filter = className.replace("gm_", "gm:").replace("_id", "").replace(" col-xs-12", "");
delete jsonData[filter];
$(filterId).remove();
......
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