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

This commit is contained in:
dgtlmoon
2024-02-01 10:36:43 +01:00
parent e9a9790cb0
commit 4b49759113
2 changed files with 7 additions and 2 deletions

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.');
}
});
});