forked from mirrors/easyappointments
Fix: reset has-error class on resetForm() function.
This commit is contained in:
parent
16c18f9b99
commit
e5fc1d427f
4 changed files with 8 additions and 0 deletions
|
@ -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);
|
||||
|
|
|
@ -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', '');
|
||||
|
|
|
@ -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', '');
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue