Skip to content

Commit

Permalink
Merge pull request #7 from ishikawa999/task/6
Browse files Browse the repository at this point in the history
Change for a change event to occur when change a value in #issue_assigned_to_id.
  • Loading branch information
ishikawa999 authored Nov 2, 2020
2 parents 22290f9 + fe20c24 commit f63285f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions assets/javascripts/searchable_selectbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,15 @@ $(function() {
}
}
}

// Changed for a change event to occur when change a value in #issue_assigned_to_id.
// https://github.com/ishikawa999/redmine_searchable_selectbox/issues/6
$('form#issue-form .assign-to-me-link').click(function(event){
event.preventDefault();
var element = $(event.target);
$('#issue_assigned_to_id').val(element.data('id')).change();
element.hide();
});
});

function replaceSelect2() {
Expand Down

0 comments on commit f63285f

Please sign in to comment.