Merge pull request #825 from popod/customers-disable-select-fix

Fix select which aren't disabled in customers backend page
This commit is contained in:
Alex Tselegidis 2020-08-15 15:29:22 +03:00 committed by GitHub
commit e4d16a66dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -106,6 +106,7 @@
$('#add-edit-delete-group').hide();
$('#save-cancel-group').show();
$('.record-details').find('input, textarea').prop('readonly', false);
$('.record-details').find('select').prop('disabled', false);
$('#filter-customers button').prop('disabled', true);
$('#filter-customers .results').css('color', '#AAA');
@ -116,6 +117,7 @@
*/
$('#edit-customer').click(function () {
$('.record-details').find('input, textarea').prop('readonly', false);
$('.record-details select').prop('disabled', false);
$('#add-edit-delete-group').hide();
$('#save-cancel-group').show();
@ -278,6 +280,7 @@
CustomersHelper.prototype.resetForm = function () {
$('.record-details').find('input, textarea').val('');
$('.record-details').find('input, textarea').prop('readonly', true);
$('.record-details').find('select').prop('disabled', true);
$('#customer-appointments').empty();
$('#appointment-details').toggleClass('hidden', true).empty();