Make WordPress Core

Ticket #24859: 24859.17.diff

File 24859.17.diff, 727 bytes (added by kovshenin, 11 years ago)
  • src/wp-includes/js/media-views.js

     
    49034903
    49044904                scroll: function() {
    49054905                        var view = this,
    4906                                 toolbar = this.views.parent.toolbar;
     4906                                toolbar;
    49074907
    4908                         // @todo: is :visible still necessary?
    49094908                        if ( ! this.$el.is(':visible') || ! this.collection.hasMore() ) {
    49104909                                return;
    49114910                        }
    49124911
     4912                        toolbar = this.views.parent.toolbar;
     4913
    49134914                        // Show the spinner only if we are close to the bottom.
    49144915                        if ( this.el.scrollHeight - ( this.el.scrollTop + this.el.clientHeight ) < this.el.clientHeight / 3 ) {
    49154916                                toolbar.get('spinner').show();