+

Fix duplicated contribution display on show more action

Benjamin Renard [2014-12-28 01:02:28]
Fix duplicated contribution display on show more action
Filename
cache.manifest
inc/myco.js
diff --git a/cache.manifest b/cache.manifest
index 2f4afb2..8935f93 100644
--- a/cache.manifest
+++ b/cache.manifest
@@ -1,5 +1,5 @@
 CACHE MANIFEST
-# Date : 2014/12/01 - Version : 1
+# Date : 2014/12/28 - Version : 1

 CACHE:
 index.html
diff --git a/inc/myco.js b/inc/myco.js
index 7fec6fa..a898163 100644
--- a/inc/myco.js
+++ b/inc/myco.js
@@ -200,7 +200,7 @@ show_more_contributions=function(count) {
   else {
     var previous=0;
     if (tbody.children('tr').length>0) {
-      previous=tbody.children('tr').length-1;
+      previous=tbody.children('tr').length;
     }
     if (!count) count=20;
     for (var i=0; i<count; i++) {
ViewGit