##// END OF EJS Templates
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.
leonardo -
r3531:1c2371dc beta
parent child Browse files
Show More
@@ -151,7 +151,8 b''
151 var checkboxes = YUD.getElementsByClassName('changeset_range');
151 var checkboxes = YUD.getElementsByClassName('changeset_range');
152 var url_tmpl = "${h.url('changeset_home',repo_name=c.repo_name,revision='__REVRANGE__')}";
152 var url_tmpl = "${h.url('changeset_home',repo_name=c.repo_name,revision='__REVRANGE__')}";
153 var pr_tmpl = "${h.url('pullrequest_home',repo_name=c.repo_name)}";
153 var pr_tmpl = "${h.url('pullrequest_home',repo_name=c.repo_name)}";
154 YUE.on(checkboxes,'click',function(e){
154
155 var checkbox_checker = function(e){
155 var clicked_cb = e.currentTarget;
156 var clicked_cb = e.currentTarget;
156 var checked_checkboxes = [];
157 var checked_checkboxes = [];
157 for (pos in checkboxes){
158 for (pos in checkboxes){
@@ -192,7 +193,10 b''
192 YUD.setStyle('rev_range_container','display','none');
193 YUD.setStyle('rev_range_container','display','none');
193 YUD.setStyle('rev_range_clear','display','none');
194 YUD.setStyle('rev_range_clear','display','none');
194 }
195 }
195 });
196 };
197 YUE.onDOMReady(checkbox_checker);
198 YUE.on(checkboxes,'click', checkbox_checker);
199
196 YUE.on('rev_range_clear','click',function(e){
200 YUE.on('rev_range_clear','click',function(e){
197 for (var i=0; i<checkboxes.length; i++){
201 for (var i=0; i<checkboxes.length; i++){
198 var cb = checkboxes[i];
202 var cb = checkboxes[i];
General Comments 0
You need to be logged in to leave comments. Login now