mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-07 23:44:55 +08:00
Merge pull request #540 from mlorb/ml_sci_1089_v2
Remove ERROR from message [SCI-1089]
This commit is contained in:
commit
4855111dcb
1 changed files with 8 additions and 8 deletions
|
@ -77,7 +77,7 @@
|
|||
|
||||
renderFormError(undefined,
|
||||
$(li).find('.text-edit'),
|
||||
Object.keys(msg)[0] + ' ' + msg.name.toString());
|
||||
msg.name.toString());
|
||||
setTimeout(function() {
|
||||
$(li).clearFormErrors();
|
||||
}, 5000);
|
||||
|
@ -107,7 +107,7 @@
|
|||
var msg = $.parseJSON(error.responseText);
|
||||
renderFormError(ev,
|
||||
$(this).find('#name-input'),
|
||||
Object.keys(msg)[0] + ' '+ msg.name.toString());
|
||||
msg.name.toString());
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -138,7 +138,7 @@
|
|||
var msg = $.parseJSON(error.responseText);
|
||||
renderFormError(ev,
|
||||
$(this).find('#name-input'),
|
||||
Object.keys(msg)[0] + ' '+ msg.name.toString());
|
||||
msg.name.toString());
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -170,7 +170,7 @@
|
|||
var msg = $.parseJSON(error.responseText);
|
||||
renderFormError(ev,
|
||||
$(this).find('#sample_type_name'),
|
||||
Object.keys(msg)[0] + ' '+ msg.name.toString());
|
||||
msg.name.toString());
|
||||
});
|
||||
},
|
||||
error: function (e) {
|
||||
|
@ -179,7 +179,7 @@
|
|||
|
||||
renderFormError(undefined,
|
||||
$(li).find('.text-edit'),
|
||||
Object.keys(msg)[0] + ' ' + msg.name.toString());
|
||||
msg.name.toString());
|
||||
setTimeout(function() {
|
||||
$(li).clearFormErrors();
|
||||
}, 5000);
|
||||
|
@ -222,7 +222,7 @@
|
|||
var msg = $.parseJSON(error.responseText);
|
||||
renderFormError(ev,
|
||||
$(this).find('#sample_group_name'),
|
||||
Object.keys(msg)[0] + ' '+ msg.name.toString());
|
||||
msg.name.toString());
|
||||
});
|
||||
},
|
||||
error: function (e) {
|
||||
|
@ -231,7 +231,7 @@
|
|||
|
||||
renderFormError(undefined,
|
||||
$(li).find('.text-edit'),
|
||||
Object.keys(msg)[0] + ' ' + msg.name.toString());
|
||||
msg.name.toString());
|
||||
setTimeout(function() {
|
||||
$(li).clearFormErrors();
|
||||
}, 5000);
|
||||
|
@ -254,7 +254,7 @@
|
|||
|
||||
renderFormError(undefined,
|
||||
$(li).find('.text-edit'),
|
||||
Object.keys(msg)[0] + ' ' + msg.name.toString());
|
||||
msg.name.toString());
|
||||
setTimeout(function() {
|
||||
$(li).clearFormErrors();
|
||||
}, 5000);
|
||||
|
|
Loading…
Reference in a new issue