mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-04 03:36:44 +08:00
Merge pull request #3495 from aignatov-bio/ai-sci-6015-clear-errors-on-new-webhook
Clear errors on cancel new webhook form [SCI-6015]
This commit is contained in:
commit
c89384cf3c
1 changed files with 2 additions and 0 deletions
|
@ -38,6 +38,7 @@
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
webhookContainer.addClass('hidden');
|
webhookContainer.addClass('hidden');
|
||||||
webhookContainer.find('.url-input').val('');
|
webhookContainer.find('.url-input').val('');
|
||||||
|
$('.webhook-form').renderFormErrors('webhook', [], true);
|
||||||
});
|
});
|
||||||
|
|
||||||
$('.activity-filters-list').on('click', '.edit-webhook', function(e) {
|
$('.activity-filters-list').on('click', '.edit-webhook', function(e) {
|
||||||
|
@ -54,6 +55,7 @@
|
||||||
input.val(input.data('original-value'));
|
input.val(input.data('original-value'));
|
||||||
webhookContainer.find('.view-mode').removeClass('hidden');
|
webhookContainer.find('.view-mode').removeClass('hidden');
|
||||||
webhookContainer.find('.edit-webhook-container').addClass('hidden');
|
webhookContainer.find('.edit-webhook-container').addClass('hidden');
|
||||||
|
$('.webhook-form').renderFormErrors('webhook', [], true);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue