Skip to content

Commit

Permalink
Change for a change event to occur when change a value in #issue_assi…
Browse files Browse the repository at this point in the history
…gned_to_id.
  • Loading branch information
ishikawa999 committed Nov 2, 2020
1 parent 22290f9 commit fe20c24
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 fe20c24

Please sign in to comment.