mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-04 14:44:26 +08:00
Merge pull request #358 from ZmagoD/zd_SCI_805_801
removes error message from new type/group form [fixes SCI-805]
This commit is contained in:
commit
3d500800cd
1 changed files with 5 additions and 2 deletions
|
@ -11,9 +11,12 @@
|
|||
|
||||
function newSampleTypeFormCancel() {
|
||||
$('#remove').off();
|
||||
$('#remove').on('click', function() {
|
||||
$('#remove').on('click', function(ev) {
|
||||
ev.preventDefault();
|
||||
$('#name-input').val('');
|
||||
$('.new-resource-form').slideUp();
|
||||
$('#new_sample_type').clearFormErrors();
|
||||
$('#new_sample_group').clearFormErrors();
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -31,7 +34,7 @@
|
|||
var li = $(this).closest('li');
|
||||
var href = $(this).attr('data-element');
|
||||
var id = $(li).attr('data-id');
|
||||
$().clearFormErrors();
|
||||
$(li).clearFormErrors();
|
||||
$.ajax({
|
||||
url: href,
|
||||
data: { id: id },
|
||||
|
|
Loading…
Reference in a new issue