This is an automated email from the ASF dual-hosted git repository.

humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kibble.git


The following commit(s) were added to refs/heads/master by this push:
     new f3c61dc  fix display bug
f3c61dc is described below

commit f3c61dc8f800ca78618dceb49db5ebbbbe16a380
Author: Daniel Gruno <humbed...@apache.org>
AuthorDate: Tue Feb 13 17:31:28 2018 +0100

    fix display bug
---
 ui/js/coffee/widget_comstat.coffee | 6 ++++--
 ui/js/kibble.v1.js                 | 6 ++++--
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/ui/js/coffee/widget_comstat.coffee 
b/ui/js/coffee/widget_comstat.coffee
index 75d588d..a6158a9 100644
--- a/ui/js/coffee/widget_comstat.coffee
+++ b/ui/js/coffee/widget_comstat.coffee
@@ -62,12 +62,13 @@ comstat = (json, state) ->
                 wh = new Date(json.bios[person].code[0] * 
1000.0).toDateString()
                 person = json.bios[person].bio
                 dstyle = 'show'
-                if i > 6
+                if i == 6
                     m = json.stats.issues.newcomers.length - 7
                     tr = mk('tr', {scope: 'row', id: 'comstat_code_more'}, [
                         mk('td', {colspan: "3"}, new HTML('a', { href: 
'javascript:void(comShow("code"));'}, "+#{m} more..."))
                         ])
                     tb.inject(tr)
+                    dstyle = "none"
 
                 tr = mk('tr', {scope: 'row', id: "comstat_code_#{i}", style: { 
display: dstyle}}, [
                     mk('td', {}, new HTML('img', {style: { width: '32px', 
height: '32px'}, class: "img-circle img-responsive", 
src:"https://secure.gravatar.com/avatar/#{person.md5}.png?d=identicon"})),
@@ -126,12 +127,13 @@ comstat = (json, state) ->
                 wh = new Date(json.bios[person].issue[0] * 
1000.0).toDateString()
                 person = json.bios[person].bio
                 dstyle = 'show'
-                if i > 6
+                if i == 6
                     m = json.stats.issues.newcomers.length - 7
                     tr = mk('tr', {scope: 'row', id: 'comstat_issue_more'}, [
                         mk('td', {colspan: "3"}, new HTML('a', { href: 
'javascript:void(comShow("issue"));'}, "+#{m} more..."))
                         ])
                     tb.inject(tr)
+                    dstyle = "none"
 
                 tr = mk('tr', {scope: 'row', id: "comstat_issue_#{i}", style: 
{ display: dstyle}}, [
                     mk('td', {}, new HTML('img', {style: { width: '32px', 
height: '32px'}, class: "img-circle img-responsive", 
src:"https://secure.gravatar.com/avatar/#{person.md5}.png?d=identicon"})),
diff --git a/ui/js/kibble.v1.js b/ui/js/kibble.v1.js
index 00badca..1962b3f 100644
--- a/ui/js/kibble.v1.js
+++ b/ui/js/kibble.v1.js
@@ -5379,7 +5379,7 @@ comstat = function(json, state) {
         wh = new Date(json.bios[person].code[0] * 1000.0).toDateString();
         person = json.bios[person].bio;
         dstyle = 'show';
-        if (i > 6) {
+        if (i === 6) {
           m = json.stats.issues.newcomers.length - 7;
           tr = mk('tr', {
             scope: 'row',
@@ -5392,6 +5392,7 @@ comstat = function(json, state) {
             }, "+" + m + " more..."))
           ]);
           tb.inject(tr);
+          dstyle = "none";
         }
         tr = mk('tr', {
           scope: 'row',
@@ -5484,7 +5485,7 @@ comstat = function(json, state) {
         wh = new Date(json.bios[person].issue[0] * 1000.0).toDateString();
         person = json.bios[person].bio;
         dstyle = 'show';
-        if (i > 6) {
+        if (i === 6) {
           m = json.stats.issues.newcomers.length - 7;
           tr = mk('tr', {
             scope: 'row',
@@ -5497,6 +5498,7 @@ comstat = function(json, state) {
             }, "+" + m + " more..."))
           ]);
           tb.inject(tr);
+          dstyle = "none";
         }
         tr = mk('tr', {
           scope: 'row',

-- 
To stop receiving notification emails like this one, please contact
humbed...@apache.org.

Reply via email to