Ticket #24859: 24859.17.diff
File 24859.17.diff, 727 bytes (added by , 11 years ago) |
---|
-
src/wp-includes/js/media-views.js
4903 4903 4904 4904 scroll: function() { 4905 4905 var view = this, 4906 toolbar = this.views.parent.toolbar;4906 toolbar; 4907 4907 4908 // @todo: is :visible still necessary?4909 4908 if ( ! this.$el.is(':visible') || ! this.collection.hasMore() ) { 4910 4909 return; 4911 4910 } 4912 4911 4912 toolbar = this.views.parent.toolbar; 4913 4913 4914 // Show the spinner only if we are close to the bottom. 4914 4915 if ( this.el.scrollHeight - ( this.el.scrollTop + this.el.clientHeight ) < this.el.clientHeight / 3 ) { 4915 4916 toolbar.get('spinner').show();