Make WordPress Core

Changeset 27840


Ignore:
Timestamp:
03/29/2014 07:53:47 AM (11 years ago)
Author:
nacin
Message:

Fix drag-and-drop upload in distraction-free writing.

props kovshenin.
fixes #27438.

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/css/media-views.css

    r27797 r27840  
    16471647
    16481648/* Drag & drop on the editor upload */
     1649#wp-fullscreen-body .uploader-editor,
    16491650.wp-editor-wrap .uploader-editor {
    16501651    background: rgba( 150, 150, 150, 0.9 );
     
    16591660}
    16601661
    1661 .wp-editor-wrap.wp-fullscreen-wrap .uploader-editor {
     1662#wp-fullscreen-body .uploader-editor {
    16621663    background: rgba( 0, 86, 132, 0.9 );
    16631664    position: fixed;
     
    16651666}
    16661667
     1668.wp-editor-wrap.wp-fullscreen-wrap .uploader-editor {
     1669    opacity: 0;
     1670}
     1671
     1672#wp-fullscreen-body .uploader-editor-content,
    16671673.wp-editor-wrap .uploader-editor-content {
    16681674    border: 1px dashed #fff;
     
    16741680}
    16751681
     1682#wp-fullscreen-body .uploader-editor .uploader-editor-title,
    16761683.wp-editor-wrap .uploader-editor .uploader-editor-title {
    16771684    position: absolute;
     
    16871694    color: #fff;
    16881695    padding: 0;
     1696    margin: 0;
    16891697    display: none;
    16901698}
     
    16941702}
    16951703
     1704#wp-fullscreen-body .uploader-editor .uploader-editor-title,
    16961705.wp-editor-wrap .uploader-editor.droppable .uploader-editor-title {
    16971706    display: block;
  • trunk/src/wp-includes/js/media-views.js

    r27797 r27840  
    31373137
    31383138            media.View.prototype.render.apply( this, arguments );
    3139             $( '.wp-editor-wrap' ).each( _.bind( this.attach, this ) );
     3139            $( '.wp-editor-wrap, #wp-fullscreen-body' ).each( _.bind( this.attach, this ) );
    31403140            return this;
    31413141        },
Note: See TracChangeset for help on using the changeset viewer.