Changeset 2819
- Timestamp:
- 03/26/2016 12:19:49 AM (9 years ago)
- Location:
- sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/includes/wordcamp-budgets.php
r2701 r2819 129 129 plugins_url( 'javascript/wordcamp-budgets.js', __DIR__ ), 130 130 array( 'jquery', 'jquery-ui-datepicker', 'media-upload', 'media-views' ), 131 2,131 3, 132 132 true 133 133 ); -
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/javascript/wordcamp-budgets.js
r2693 r2819 37 37 $( inputField ).prop( 'required', false ); 38 38 } ); 39 40 app.checkRadioButtons(); 39 41 }, 40 42 … … 76 78 77 79 // todo make the transition smoother 80 81 app.checkRadioButtons(); 82 }, 83 84 /* 85 * Make sure all radio buttons have values in Chrome 86 * 87 * This is only to work around bug #596138 88 * 89 * @see https://bugs.chromium.org/p/chromium/issues/detail?id=596138 90 * @todo remove this after Chrome 51 is adopted by most users 91 */ 92 checkRadioButtons : function() { 93 var checkedPaymentMethods = $( 'input[name="payment_method"]:checked' ); 94 95 if ( ! window.hasOwnProperty( 'chrome' ) ) { 96 return; 97 } 98 99 if ( 'Direct Deposit' != checkedPaymentMethods.val() ) { 100 if ( 0 === $( 'input[name="ach_account_type"]:checked' ).length ) { 101 $( '#ach_account_type_company' ).prop( 'checked', true ); 102 } 103 } 104 105 if ( 0 === checkedPaymentMethods.length ) { 106 $( '#payment_method_direct_deposit' ).prop( 'checked', true ); 107 } 78 108 }, 79 109
Note: See TracChangeset
for help on using the changeset viewer.