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