Skip to content

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
thelostone-mc committed Aug 28, 2019
1 parent a078a5c commit 2a033de
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions app/assets/v2/js/pages/new_bounty.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,14 @@ $('.select2-tag__choice').on('click', function() {

$('.select2-add_byskill').on('click', function(e) {
e.preventDefault();
$('#invite-contributors.js-select2').val(processedData[1].children.map((item) => { return item.id})).trigger("change")
$('#invite-contributors.js-select2').val(processedData[1].children.map((item) => {
return item.id;
})).trigger('change');
});

$('.select2-clear_invites').on('click', function(e) {
e.preventDefault();
$('#invite-contributors.js-select2').val(null).trigger("change")
$('#invite-contributors.js-select2').val(null).trigger('change');
});


Expand All @@ -60,10 +62,10 @@ const getSuggestions = () => {
queryParams.invite = params.get('invite') || '';

if (queryParams.keywords.length) {
$('#invite-all-container').show()
$('.select2-add_byskill span').text(queryParams.keywords)
$('#invite-all-container').show();
$('.select2-add_byskill span').text(queryParams.keywords);
} else {
$('#invite-all-container').hide()
$('#invite-all-container').hide();
}

let searchParams = new URLSearchParams(queryParams);
Expand Down

0 comments on commit 2a033de

Please sign in to comment.