##// 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 151 var checkboxes = YUD.getElementsByClassName('changeset_range');
152 152 var url_tmpl = "${h.url('changeset_home',repo_name=c.repo_name,revision='__REVRANGE__')}";
153 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 156 var clicked_cb = e.currentTarget;
156 157 var checked_checkboxes = [];
157 158 for (pos in checkboxes){
@@ -192,7 +193,10 b''
192 193 YUD.setStyle('rev_range_container','display','none');
193 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 200 YUE.on('rev_range_clear','click',function(e){
197 201 for (var i=0; i<checkboxes.length; i++){
198 202 var cb = checkboxes[i];
General Comments 0
You need to be logged in to leave comments. Login now