Making WordPress.org

Changeset 384


Ignore:
Timestamp:
02/06/2014 06:14:12 PM (13 years ago)
Author:
iandunn
Message:

Coming Soon: Warn the user that the image preview isn't updated until they save.

Location:
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-coming-soon-page
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-coming-soon-page/javascript/wccsp-settings.js

    r381 r384  
    2727                                var attachments = frame.state().get( 'selection' ).toJSON();
    2828                                $( '#wccsp_image_id' ).val( parseInt( attachments[0].id ) );
     29                                $( '#wccsp_image_preview' ).text( 'You have chosen a new image. The preview will be updated after you click on the Save Changes button.' );
    2930                        } );
    3031
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-coming-soon-page/views/settings-fields.php

    r383 r384  
    3030       
    3131        <?php if( $image ) : ?>
    32                 <p>
     32                <p id="wccsp_image_preview">
    3333                        Current image preview:<br />
    34                         <img id="wccsp-image-preview" src="<?php echo esc_attr( $image[0] ); ?>" alt="Image Preview" />
     34                        <img src="<?php echo esc_attr( $image[0] ); ?>" alt="Image Preview" />
    3535                </p>
    3636        <?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.