Commit 89322be7 authored by Maxim's avatar Maxim
Browse files

Bug fix with remove btn

parent c2a36e62
......@@ -382,8 +382,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();
......
Supports Markdown
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