Ticket #19815: 19815.12.diff
File 19815.12.diff, 940 bytes (added by , 13 years ago) |
---|
-
wp-admin/js/theme.dev.js
110 110 * If there are more pages to query, then start polling to track 111 111 * when user hits the bottom of the current page 112 112 */ 113 if ( theme_list_args.total_pages !== undefined && 114 theme_list_args.total_pages >= this.nextPage ) 113 if ( theme_list_args.total_pages >= this.nextPage ) 115 114 this.pollInterval = 116 115 setInterval( function() { 117 116 return self.poll(); … … 144 143 * @param results Array with results from this.ajax() query. 145 144 */ 146 145 process: function( results ) { 147 if ( ( results === undefined ) || 148 ( results.rows === undefined ) || 149 ( results.rows.indexOf( 'no-items' ) != -1 ) ) { 146 if ( results === undefined ) { 150 147 clearInterval( this.pollInterval ); 151 148 return; 152 149 }