diff --git a/app/assets/javascripts/tags.js b/app/assets/javascripts/tags.js index 4d63dddb7..460c215b5 100644 --- a/app/assets/javascripts/tags.js +++ b/app/assets/javascripts/tags.js @@ -23,7 +23,7 @@ $(() => { return $(tagSpan + descSpan); } - $('.js-tag-select').each((i, el) => { + $('.js-tag-select').each((_i, el) => { const $tgt = $(el); let $this; const useIds = $tgt.attr('data-use-ids') === 'true'; @@ -46,7 +46,7 @@ $(() => { }, headers: { 'Accept': 'application/json' }, delay: 100, - processResults: data => { + processResults: (data) => { // (for the tour) if (Number($this.data('tag-set')) === -1) { return { @@ -91,7 +91,7 @@ $(() => { return synonymsString; } - $('#add-tag-synonym').on('click', ev => { + $('#add-tag-synonym').on('click', (ev) => { const $wrapper = $('#tag-synonyms-wrapper'); const lastId = $wrapper.children('.tag-synonym').last().attr('data-id'); const newId = parseInt(lastId, 10) + 1; @@ -121,7 +121,7 @@ $(() => { synonym.hide(); } - $('.js-add-required-tag').on('click', ev => { + $('.js-add-required-tag').on('click', (ev) => { const $tgt = $(ev.target); const useIds = $tgt.attr('data-use-ids') === 'true'; const tagId = $tgt.attr('data-tag-id'); @@ -137,7 +137,7 @@ $(() => { } }); - $('.js-rename-tag').on('click', async ev => { + $('.js-rename-tag').on('click', async (ev) => { const $tgt = $(ev.target).is('a') ? $(ev.target) : $(ev.target).parents('a'); const categoryId = $tgt.attr('data-category'); const tagId = $tgt.attr('data-tag');