Skip to content

Commit

Permalink
[clone relations] Empty external recording field when using internal …
Browse files Browse the repository at this point in the history
…cloning
  • Loading branch information
loujine committed Jan 29, 2022
1 parent b1be30a commit bf029c2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mb-reledit-clone_relations.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,10 @@ function cloneReleaseExtAR(relMBID) {
$(document).ready(function () {
$('input#cloneExtRecording').on('input', autoCompleteRec);
$('input#cloneExtRelease').on('input', autoCompleteRel);
$('input#cloneRef').on('input', () => {
document.getElementById('cloneExtRecording').value = '';
autoCompleteRec();
});
let appliedNote = false;
document.getElementById('cloneAR').addEventListener('click', () => {
const recMBID = $('input#cloneExtRecording').data('mbid');
Expand Down

0 comments on commit bf029c2

Please sign in to comment.