js: remove jquery-ui effect-shake plugin.

This commit is contained in:
evazion
2021-01-29 15:06:35 -06:00
parent d0c9f6e0b8
commit 151a9b026e
4 changed files with 9 additions and 2 deletions

View File

@@ -135,11 +135,13 @@ ArtistCommentary.merge_commentaries = function(description, commentary) {
// Update commentary field if it's blank, signal an error if there's a conflict.
ArtistCommentary.update_field = function($field, value) {
$field.removeClass("validation-error");
if ($field.val().trim() === "") {
$field.val(value);
return true;
} else if ($field.val().trim() !== value) {
$field.effect("shake", { direction: "up", distance: 5 });
$field.addClass("validation-error");
return false;
} else {
return true;