mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-22 07:52:29 +03:00
Fix select not disabled in customers backend page.
This commit is contained in:
parent
e857d3a37e
commit
4f1cf415af
1 changed files with 3 additions and 0 deletions
|
@ -106,6 +106,7 @@
|
||||||
$('#add-edit-delete-group').hide();
|
$('#add-edit-delete-group').hide();
|
||||||
$('#save-cancel-group').show();
|
$('#save-cancel-group').show();
|
||||||
$('.record-details').find('input, textarea').prop('readonly', false);
|
$('.record-details').find('input, textarea').prop('readonly', false);
|
||||||
|
$('.record-details').find('select').prop('disabled', false);
|
||||||
|
|
||||||
$('#filter-customers button').prop('disabled', true);
|
$('#filter-customers button').prop('disabled', true);
|
||||||
$('#filter-customers .results').css('color', '#AAA');
|
$('#filter-customers .results').css('color', '#AAA');
|
||||||
|
@ -116,6 +117,7 @@
|
||||||
*/
|
*/
|
||||||
$('#edit-customer').click(function () {
|
$('#edit-customer').click(function () {
|
||||||
$('.record-details').find('input, textarea').prop('readonly', false);
|
$('.record-details').find('input, textarea').prop('readonly', false);
|
||||||
|
$('.record-details select').prop('disabled', false);
|
||||||
$('#add-edit-delete-group').hide();
|
$('#add-edit-delete-group').hide();
|
||||||
$('#save-cancel-group').show();
|
$('#save-cancel-group').show();
|
||||||
|
|
||||||
|
@ -278,6 +280,7 @@
|
||||||
CustomersHelper.prototype.resetForm = function () {
|
CustomersHelper.prototype.resetForm = function () {
|
||||||
$('.record-details').find('input, textarea').val('');
|
$('.record-details').find('input, textarea').val('');
|
||||||
$('.record-details').find('input, textarea').prop('readonly', true);
|
$('.record-details').find('input, textarea').prop('readonly', true);
|
||||||
|
$('.record-details').find('select').prop('disabled', true);
|
||||||
|
|
||||||
$('#customer-appointments').empty();
|
$('#customer-appointments').empty();
|
||||||
$('#appointment-details').toggleClass('hidden', true).empty();
|
$('#appointment-details').toggleClass('hidden', true).empty();
|
||||||
|
|
Loading…
Reference in a new issue