Making WordPress.org

Changeset 2427


Ignore:
Timestamp:
01/29/2016 04:51:49 PM (9 years ago)
Author:
iandunn
Message:

WordCamp Budgets: Update selector for files container.

This was missed in r2416.

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/payment-request.php

    r2420 r2427  
    178178            plugins_url( 'javascript/payment-requests.js', __DIR__ ),
    179179            array( 'wordcamp-budgets', 'wcb-attached-files', 'jquery' ),
    180             1,
     180            2,
    181181            true
    182182        );
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/javascript/payment-requests.js

    r2409 r2427  
    1111            try {
    1212                app.registerEventHandlers();
    13                 wcb.attachedFilesView = new wcb.AttachedFilesView( { el: $( '#wcp_files' ) } );
     13                wcb.attachedFilesView = new wcb.AttachedFilesView( { el: $( '#row-files' ) } );
    1414                wcb.setupDatePicker( '#wcp_general_info' );
    1515                wcb.setupDatePicker( '#submitpost.wcb'   );
     
    3131            currency.change( wcb.setDefaultPaymentMethod );
    3232            currency.trigger( 'change' );   // Set the initial state
    33             $( '#wcp_files' ).find( 'a.wcb-insert-media' ).click( wcb.showUploadModal );
     33            $( '#row-files' ).find( 'a.wcb-insert-media' ).click( wcb.showUploadModal );
    3434            $( '#wcp_mark_incomplete_checkbox' ).click( app.requireNotes );
    3535        },
Note: See TracChangeset for help on using the changeset viewer.