Merge pull request #846 from popod/fix-reset-of-has-error-class-in-resetform-fct

Fix: reset has-error class on resetForm() function.
This commit is contained in:
Alex Tselegidis 2020-08-15 14:47:15 +03:00 committed by GitHub
commit 1bb31dbc81
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 0 deletions

View file

@ -309,6 +309,8 @@
$('#categories .record-details').find('input, textarea').prop('readonly', true);
$('#edit-category, #delete-category').prop('disabled', true);
$('.record-details .has-error').removeClass('has-error');
$('#filter-categories .selected').removeClass('selected');
$('#filter-categories .results').css('color', '');
$('#filter-categories button').prop('disabled', false);

View file

@ -277,6 +277,8 @@
$('#services .record-details').find('input, textarea').prop('readonly', true);
$('#services .record-details').find('select').prop('disabled', true);
$('.record-details .has-error').removeClass('has-error');
$('#filter-services .selected').removeClass('selected');
$('#filter-services button').prop('disabled', false);
$('#filter-services .results').css('color', '');

View file

@ -300,6 +300,8 @@
$('#admin-notifications').removeClass('active');
$('#edit-admin, #delete-admin').prop('disabled', true);
$('#admins .has-error').removeClass('has-error');
$('#filter-admins .selected').removeClass('selected');
$('#filter-admins button').prop('disabled', false);
$('#filter-admins .results').css('color', '');

View file

@ -360,6 +360,8 @@
$('.breaks').find('.edit-break, .delete-break').prop('disabled', true);
$('.extra-periods').find('.edit-extra, .delete-extra').prop('disabled', true);
$('#providers .has-error').removeClass('has-error');
$('#edit-provider, #delete-provider').prop('disabled', true);
$('#providers .record-details').find('input, textarea').val('');
$('#provider-services input:checkbox').prop('checked', false);