svncommit
2008-08-29 835a0cabaa9cd8e17e02d9c9df0a449eb45677f1
Only count children's unread if they exist.


1 files modified
6 ■■■■ changed files
program/js/app.js 6 ●●●● patch | view | raw | blame | history
program/js/app.js
@@ -3499,9 +3499,9 @@
      text_obj = item.getElementsByTagName('a')[0];
      reg = /\s+\([0-9]+\)$/i;
      div = item.getElementsByTagName('div')[0];
      childcount = 0;
      if (div.className.match(/collapsed/))
      childcount = 0;
      if ((div = item.getElementsByTagName('div')[0]) &&
          div.className.match(/collapsed/))
        {
        // add children's counters
        children = item.getElementsByTagName('li');