Skip to content

Commit

Permalink
Add separator between values in multi choice filters
Browse files Browse the repository at this point in the history
  • Loading branch information
LePetitTim committed Oct 17, 2019
1 parent 26d8824 commit 1c7377c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mapentity/static/mapentity/mapentity.filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ MapEntity.TogglableFilter = L.Class.extend({
// Displayed value
var value = val;
if (field.tagName == 'SELECT') {
value = $(field).find("option:selected").text();
value = Array.from($(field).find("option:selected")).map(item => item.textContent).filter(Boolean).join(', ');
}

if (set) {
Expand Down

0 comments on commit 1c7377c

Please sign in to comment.