Changeset 28019
- Timestamp:
- 04/07/2014 10:14:01 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/media-views.js
r27946 r28019 4889 4889 scroll: function() { 4890 4890 var view = this, 4891 toolbar ;4892 4893 // @todo: is thisstill necessary?4894 if ( ! this.$el.is(':visible') ) {4891 toolbar = this.views.parent.toolbar; 4892 4893 // @todo: is :visible still necessary? 4894 if ( ! this.$el.is(':visible') || ! this.collection.hasMore() ) { 4895 4895 return; 4896 4896 } 4897 4897 4898 if ( this.collection.hasMore() && this.el.scrollHeight < this.el.scrollTop + ( this.el.clientHeight * this.options.refreshThreshold ) ) {4899 toolbar = this.views.parent.toolbar;4898 // Show the spinner only if we are close to the bottom. 4899 if ( this.el.scrollHeight - ( this.el.scrollTop + this.el.clientHeight ) < this.el.clientHeight / 3 ) { 4900 4900 toolbar.get('spinner').show(); 4901 4901 } 4902 4903 if ( this.el.scrollHeight < this.el.scrollTop + ( this.el.clientHeight * this.options.refreshThreshold ) ) { 4902 4904 this.collection.more().done(function() { 4903 4905 view.scroll();
Note: See TracChangeset
for help on using the changeset viewer.