Skip to content

Commit

Permalink
Fix CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtOfCode- committed Jun 8, 2021
1 parent 20b52f5 commit 554fff3
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions app/assets/javascripts/tags.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ $(() => {
data: function (params) {
$this = $(this);
// (for the tour)
if ($this.data('tag-set') == "-1") {
if ($this.data('tag-set') === '-1') {
return Object.assign(params, { tag_set: "1" });
}
return Object.assign(params, { tag_set: $this.data('tag-set') });
Expand All @@ -42,17 +42,23 @@ $(() => {
delay: 100,
processResults: data => {
// (for the tour)
if ($this.data('tag-set') == "-1") {
if ($this.data('tag-set') === '-1') {
return {
results: [
{ id: 1, text: "hot-red-firebreather", desc: "Very cute dragon" },
{ id: 2, text: "training", desc: "How to train a dragon" },
{ id: 3, text: "behavior", desc: "How a dragon behaves" },
{ id: 4, text: "sapphire-blue-waterspouter", desc: "Other cute dragon" }
{ id: 1, text: 'hot-red-firebreather', desc: 'Very cute dragon' },
{ id: 2, text: 'training', desc: 'How to train a dragon' },
{ id: 3, text: 'behavior', desc: 'How a dragon behaves' },
{ id: 4, text: 'sapphire-blue-waterspouter', desc: 'Other cute dragon' }
]
}
}
return {results: data.map(t => ({id: useIds ? t.id : t.name, text: t.name, desc: t.excerpt}))};
return {
results: data.map(t => ({
id: useIds ? t.id : t.name,
text: t.name.replace('<', '&#x3C;').replace('>', '&#x3E;'),
desc: t.excerpt
}))
};
},
},
templateResult: template
Expand Down

0 comments on commit 554fff3

Please sign in to comment.