Changeset 2902123
- Timestamp:
- 04/21/2023 06:43:49 AM (3 years ago)
- File:
-
- 1 edited
-
9pay-gateway/trunk/mc-quetma.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
9pay-gateway/trunk/mc-quetma.php
r2897524 r2902123 694 694 /*Reset when choose payment method*/ 695 695 checkoutForm.on('change', 'select[name="ninepay_payment_method"]', function(){ 696 $(document.body).trigger('update_checkout'); 696 var a = $(this).val(); 697 $(document.body).trigger('update_checkout'); 698 $('select[name="ninepay_payment_method"] option[value='+a+']').prop('selected', true); 699 // Once checkout has been updated 700 $('body').on('updated_checkout', function(){ 701 // Restoring the chosen option value 702 $('select[name="ninepay_payment_method"] option[value='+a+']').prop('selected', true); 703 }); 697 704 }); 698 705 });
Note: See TracChangeset
for help on using the changeset viewer.