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

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();