UI - Show error/warning when trying to compare the same version

pull/2147/head
dgtlmoon 3 months ago
parent 520650e2e6
commit 1945a59a72

@ -90,5 +90,10 @@ $(document).ready(function () {
}
}
$('#diff-form').on('submit', function (e) {
if ($('select[name=from_version]').val() === $('select[name=to_version]').val()) {
e.preventDefault();
alert('Error - You are trying to compare the same version.');
}
});
});

Loading…
Cancel
Save