Mercurial > kallithea
changeset 1201:7d2c16725be6 beta
quick filter will update repo count
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sun, 03 Apr 2011 11:44:19 +0200 |
parents | 3ecaa17d9dea |
children | eef9e273347a |
files | rhodecode/templates/index.html |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/templates/index.html Sat Apr 02 21:29:50 2011 +0200 +++ b/rhodecode/templates/index.html Sun Apr 03 11:44:19 2011 +0200 @@ -32,7 +32,7 @@ id="q_filter" size="15" type="text" name="filter" value="${_('quick filter...')}"/> - ${_('Dashboard - %s repositories' % c.repo_cnt)} + ${_('Dashboard')} - <span id="repo_count">${c.repo_cnt}</span> ${_('repositories')} </h5> %if c.rhodecode_user.username != 'default': %if h.HasPermissionAny('hg.admin','hg.create.repository')(): @@ -168,6 +168,8 @@ } } } + // set new count into dashboard + YUD.get('repo_count').innerHTML = nodes.length - obsolete.length; } E.on(q_filter,'keyup',function(e){