CRM-16462 - update select2 elements on billing block
authorColeman Watts <coleman@civicrm.org>
Fri, 8 May 2015 00:26:23 +0000 (20:26 -0400)
committerColeman Watts <coleman@civicrm.org>
Fri, 8 May 2015 00:26:23 +0000 (20:26 -0400)
templates/CRM/Core/BillingBlock.tpl

index 504a067afbf48a6c9a6abe81142d8495191f1a26..abf23e86f688c0941f448761d21503eedd9af1de 100644 (file)
           if ($('#billingcheckbox').prop('checked')) {
             $(orig_id + ' option').prop('selected', false);
             $(orig_id + ' option[value="' + $(id).val() + '"]').prop('selected', true);
-          }
-
-          if (orig_id == '#billing_country_id-5') {
             $(orig_id).change();
           }
         });
             orig_id = select_ids[id];
             $(orig_id + ' option').prop('selected', false);
             $(orig_id + ' option[value="' + $(id).val() + '"]').prop('selected', true);
+            $(orig_id).change();
           }
         } else {
           $('.billing_name_address-group').show(200);