Make WordPress Core

Ticket #28844: 28844.2.diff

File 28844.2.diff, 1.8 KB (added by ericlewis, 11 years ago)
  • src/wp-includes/css/media-views.css

    diff --git a/src/wp-includes/css/media-views.css b/src/wp-includes/css/media-views.css
    index 6096990..7aa7051 100644
    a b  
    11/**
    22 * Base Styles
    33 */
     4body.no-scroll {
     5        overflow: hidden;
     6}
     7
    48.media-modal * {
    59        -webkit-box-sizing: content-box;
    610        -moz-box-sizing: content-box;
  • src/wp-includes/js/media-grid.js

    diff --git a/src/wp-includes/js/media-grid.js b/src/wp-includes/js/media-grid.js
    index 325d9ed..7507a53 100644
    a b  
    425425
    426426                        _.defaults( this.options, {
    427427                                modal: true,
    428                                 state: 'edit-attachment'
     428                                state: 'edit-attachment',
     429                                title: 'hi'
    429430                        });
    430431
    431432                        this.gridRouter = this.options.gridRouter;
     
    569570                hasPrevious: function() {
    570571                        return ( this.getCurrentIndex() - 1 ) > -1;
    571572                },
     573
    572574                /**
    573575                 * Respond to the keyboard events: right arrow, left arrow, escape.
    574576                 */
  • src/wp-includes/js/media-views.js

    diff --git a/src/wp-includes/js/media-views.js b/src/wp-includes/js/media-views.js
    index 0f3246e..d959173 100644
    a b  
    32063206                        var $el = this.$el,
    32073207                                options = this.options;
    32083208
     3209                        // Disallow scrolling on the body while the modal is open.
     3210                        $('body').addClass( 'no-scroll' );
     3211
    32093212                        if ( $el.is(':visible') ) {
    32103213                                return this;
    32113214                        }
     
    32363239                                return this;
    32373240                        }
    32383241
     3242                        // Disallow scrolling on the body while the modal is open.
     3243                        $('body').removeClass( 'no-scroll' );
     3244
    32393245                        // Hide modal and remove restricted media modal tab focus once it's closed
    32403246                        this.$el.hide().undelegate( 'keydown' );
    32413247
     
    68646870                },
    68656871
    68666872                back: function() {
     6873                        debugger;
    68676874                        var lastState = this.controller.lastState();
    68686875                        this.controller.setState( lastState );
    68696876                },