Changeset - 1c2371dc86bd
[Not reviewed]
beta
0 1 0
leonardo - 13 years ago 2013-03-04 18:56:02

Bugfix: On the changelog page, its possible that the some changeset is already checked out by the browser. So we check for that on page load.
1 file changed with 6 insertions and 2 deletions:
0 comments (0 inline, 0 general)
rhodecode/templates/changelog/changelog.html
Show inline comments
 
modified file chmod 100644 => 100755
 
@@ -151,7 +151,8 @@ ${_('%s Changelog') % c.repo_name} - ${c
 
                    var checkboxes = YUD.getElementsByClassName('changeset_range');
 
                    var url_tmpl = "${h.url('changeset_home',repo_name=c.repo_name,revision='__REVRANGE__')}";
 
                    var pr_tmpl = "${h.url('pullrequest_home',repo_name=c.repo_name)}";
 
                    YUE.on(checkboxes,'click',function(e){
 
                    
 
                    var checkbox_checker = function(e){
 
                        var clicked_cb = e.currentTarget;
 
                        var checked_checkboxes = [];
 
                        for (pos in checkboxes){
 
@@ -192,7 +193,10 @@ ${_('%s Changelog') % c.repo_name} - ${c
 
                            YUD.setStyle('rev_range_container','display','none');
 
                            YUD.setStyle('rev_range_clear','display','none');
 
                        }
 
                    });
 
                    };
 
                    YUE.onDOMReady(checkbox_checker);
 
                    YUE.on(checkboxes,'click', checkbox_checker);
 

	
 
                    YUE.on('rev_range_clear','click',function(e){
 
                        for (var i=0; i<checkboxes.length; i++){
 
                            var cb = checkboxes[i];
0 comments (0 inline, 0 general)