We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f60473 commit 1ee8648Copy full SHA for 1ee8648
src/js/_enqueues/admin/post.js
@@ -40,8 +40,11 @@ window.wp = window.wp || {};
40
*/
41
get : function(total, num) {
42
var st = this.st, data;
43
- if ( ! num )
44
- num = 20;
+ if ( num ) {
+ this.num = num;
45
+ } else {
46
+ num = this.num || 10; // Fallback if not set yet
47
+ }
48
49
this.st += num;
50
this.total = total;
@@ -98,7 +101,7 @@ window.wp = window.wp || {};
98
101
99
102
load: function(total){
100
103
this.st = jQuery('#the-comment-list tr.comment:visible').length;
- this.get(total);
104
+ this.get(total, this.num || 10);
105
}
106
};
107
0 commit comments