changeset 2812:ad4bc0f66d6a beta

fixes #557 follower counter always counts up
author Marcin Kuzminski <marcin@python-works.com>
date Wed, 05 Sep 2012 23:55:29 +0200
parents b1467856a638
children 25b10f9d23b4
files docs/changelog.rst rhodecode/templates/base/root.html
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/docs/changelog.rst	Wed Sep 05 23:10:32 2012 +0200
+++ b/docs/changelog.rst	Wed Sep 05 23:55:29 2012 +0200
@@ -36,6 +36,7 @@
 - fixed status of code-review in preview windows of pull request
 - git forks were not initialized at bare repos
 - fixes #555 fixes issues with comparing non-related repositories
+- fixes #557 follower counter always counts up
 
 1.4.0 (**2012-09-03**)
 ----------------------
--- a/rhodecode/templates/base/root.html	Wed Sep 05 23:10:32 2012 +0200
+++ b/rhodecode/templates/base/root.html	Wed Sep 05 23:55:29 2012 +0200
@@ -90,7 +90,7 @@
                     f.setAttribute('class','follow');
                     f.setAttribute('title',_TM['Start following this repository']);
                     if(f_cnt){
-                        var cnt = Number(f_cnt.innerHTML)+1;
+                        var cnt = Number(f_cnt.innerHTML)-1;
                         f_cnt.innerHTML = cnt;
                     }
                 }