changeset 2744:94886e8432a2 beta

fixed changed details helper
author Marcin Kuzminski <marcin@python-works.com>
date Sat, 25 Aug 2012 23:53:23 +0200
parents 64ee7cf4a76d
children fe47ff8ef3f7
files rhodecode/templates/changelog/changelog.html
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/rhodecode/templates/changelog/changelog.html	Sat Aug 25 22:14:31 2012 +0200
+++ b/rhodecode/templates/changelog/changelog.html	Sat Aug 25 23:53:23 2012 +0200
@@ -71,7 +71,7 @@
 						</div>
 						<div class="right">
 									<div class="changes">
-                                        <div id="${cs.raw_id}"  style="float:right;" class="changed_total tooltip" title="${h.tooltip(_('Affected number of files, click to show more details'))}">${len(cs.affected_files)}</div>
+                                        <div id="changed_total_${cs.raw_id}" style="float:right;" class="changed_total tooltip" title="${h.tooltip(_('Affected number of files, click to show more details'))}">${len(cs.affected_files)}</div>
                                         <div class="comments-container">
                                         %if len(c.comments.get(cs.raw_id,[])) > 0:
                                             <div class="comments-cnt" title="${('comments')}">
@@ -201,9 +201,9 @@
 
                     // Fetch changeset details
                     YUE.on(YUD.getElementsByClassName('changed_total'),'click',function(e){
-                    	var id = e.currentTarget.id
-                    	var url = "${h.url('changelog_details',repo_name=c.repo_name,cs='__CS__')}"
-                    	var url = url.replace('__CS__',id);
+                    	var id = e.currentTarget.id;
+                    	var url = "${h.url('changelog_details',repo_name=c.repo_name,cs='__CS__')}";
+                    	var url = url.replace('__CS__',id.replace('changed_total_',''));
                     	ypjax(url,id,function(){tooltip_activate()});
                     });