# HG changeset patch # User Leonardo Carneiro # Date 1362419762 -3600 # Node ID d253f1b530c878816e3772349ede04b49065c699 # Parent 81ea5f73963f969e179ed8103cb934f48cc7ae5a Bugfix: On the changelog page, its possible that some changeset is already checked out by the browser. So we check for that on page load. diff -r 81ea5f73963f -r d253f1b530c8 rhodecode/templates/changelog/changelog.html --- a/rhodecode/templates/changelog/changelog.html Tue Mar 05 17:11:15 2013 +0100 +++ b/rhodecode/templates/changelog/changelog.html Mon Mar 04 18:56:02 2013 +0100 @@ -150,7 +150,8 @@ 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){ @@ -191,7 +192,10 @@ 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