X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=templates%2FCRM%2FBatch%2FForm%2FEntry.js;h=6b81bd19621a544cf7b1f50b09feb34ad4b4aee2;hb=bd6d55934fb8cec290b612b6c2d3d028800744ad;hp=78ab8337de5b5ea380c4d3465c507c90f653fa6b;hpb=a9c9daa040c5b9695c1d3a64419738989d3c31c7;p=civicrm-core.git diff --git a/templates/CRM/Batch/Form/Entry.js b/templates/CRM/Batch/Form/Entry.js index 78ab8337de..6b81bd1962 100644 --- a/templates/CRM/Batch/Form/Entry.js +++ b/templates/CRM/Batch/Form/Entry.js @@ -44,7 +44,7 @@ cj(function () { else{ cj('select[id^="member_option_"]').each(function () { if (cj(this).val() == 1) { - cj(this).attr('disabled', true); + cj(this).prop('disabled', true); } }); @@ -95,7 +95,7 @@ function updateContactInfo(blockNo, prefix) { if(CRM.batch.type_id == 2) { CRM.api('Membership', 'get', { 'sequential': '1', - 'contact_id': contactId, + 'contact_id': contactId }, { success: function (data) { if (data.count > 0) { @@ -108,7 +108,7 @@ function updateContactInfo(blockNo, prefix) { }, { success: function (data) { var memTypeContactId = data.values[0].member_of_contact_id; - cj('select[id="member_option_' + blockNo + '"]').removeAttr('disabled').val(2); + cj('select[id="member_option_' + blockNo + '"]').prop('disabled', false).val(2); cj('select[id="field_' + blockNo + '_membership_type_0"]').val(memTypeContactId).change(); cj('select[id="field_' + blockNo + '_membership_type_1"]').val(membershipTypeId).change(); setDateFieldValue('join_date', membershipJoinDate, blockNo)