Mercurial > kallithea
changeset 3464:d253f1b530c8 beta
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.
author | Leonardo Carneiro <leonardo@unity3d.com> |
---|---|
date | Mon, 04 Mar 2013 18:56:02 +0100 |
parents | 81ea5f73963f |
children | df05806e8a2d |
files | rhodecode/templates/changelog/changelog.html |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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<checkboxes.length; i++){ var cb = checkboxes[i];