mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-08 17:12:25 +03:00
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:
commit
1bb31dbc81
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