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

This commit is contained in:
dgtlmoon
2024-02-01 10:33:03 +01:00
parent 520650e2e6
commit 1945a59a72
+6 -1
View File
@@ -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.');
}
});
});