Changeset 2330
- Timestamp:
- 01/19/2016 08:55:27 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/javascript/payment-requests.js
r2329 r2330 22 22 */ 23 23 registerEventHandlers : function() { 24 var paymentCategory = $( '#payment_category' ); 25 24 26 $( '#wcp_payment_details' ).find( 'input[name=payment_method]' ).change( wcb.togglePaymentMethodFields ); 25 $( '#payment_category' ).change( app.toggleOtherCategoryDescription );26 // todo this needs to fire onLoad too, otherwise the field is hidden27 paymentCategory.change( app.toggleOtherCategoryDescription ); 28 paymentCategory.trigger( 'change' ); // Set the initial state 27 29 $( '#wcp_files' ).find( 'a.wcp-insert-media' ).click( { title : wcpLocalizedStrings.uploadModalTitle }, wcb.showUploadModal ); 28 30 $( '#wcp_mark_incomplete_checkbox' ).click( app.requireNotes );
Note: See TracChangeset
for help on using the changeset viewer.