Changeset 2327 for sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/includes/payment-request.php
- Timestamp:
- 01/19/2016 08:44:53 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/includes/payment-request.php
r2309 r2327 182 182 'payment-requests', 183 183 plugins_url( 'javascript/payment-requests.js', __DIR__ ), 184 array( ' jquery', 'jquery-ui-datepicker', 'media-upload', 'media-views' ),184 array( 'wordcamp-budgets', 'wcb-attached-files', 'jquery' ), 185 185 WordCamp_Budgets::VERSION, 186 186 true 187 187 ); 188 188 189 wp_register_script(190 'wcp-attached-files',191 plugins_url( 'javascript/attached-files.js', __DIR__ ),192 array( 'payment-requests', 'backbone', 'wp-util' ),193 WordCamp_Budgets::VERSION,194 true195 );196 197 189 // Enqueue our assets if they're needed on the current screen 198 190 $current_screen = get_current_screen(); … … 206 198 if ( isset( $post->ID ) ) { 207 199 wp_enqueue_media( array( 'post' => $post->ID ) ); 208 wp_enqueue_script( 'wc p-attached-files' );200 wp_enqueue_script( 'wcb-attached-files' ); 209 201 } 210 202 211 203 wp_localize_script( 212 204 'payment-requests', 213 'wcpLocalizedStrings', // todo merge into paymentRequests var205 'wcpLocalizedStrings', // todo merge into WordCampBudgets var 214 206 array( 215 207 'uploadModalTitle' => __( 'Attach Supporting Documentation', 'wordcamporg' ), 216 'uploadModalButton' => __( 'Attach Files', 'wordcamporg' ),217 208 ) 218 209 );
Note: See TracChangeset
for help on using the changeset viewer.