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:
Zmago Devetak 2016-12-16 10:54:23 +01:00 committed by GitHub
commit 3d500800cd

View file

@ -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 },