Show More
@@ -150,7 +150,8 b'' | |||
|
150 | 150 | var checkboxes = YUD.getElementsByClassName('changeset_range'); |
|
151 | 151 | var url_tmpl = "${h.url('changeset_home',repo_name=c.repo_name,revision='__REVRANGE__')}"; |
|
152 | 152 | var pr_tmpl = "${h.url('pullrequest_home',repo_name=c.repo_name)}"; |
|
153 | YUE.on(checkboxes,'click',function(e){ | |
|
153 | ||
|
154 | var checkbox_checker = function(e){ | |
|
154 | 155 | var clicked_cb = e.currentTarget; |
|
155 | 156 | var checked_checkboxes = []; |
|
156 | 157 | for (pos in checkboxes){ |
@@ -191,7 +192,10 b'' | |||
|
191 | 192 | YUD.setStyle('rev_range_container','display','none'); |
|
192 | 193 | YUD.setStyle('rev_range_clear','display','none'); |
|
193 | 194 | } |
|
194 |
} |
|
|
195 | }; | |
|
196 | YUE.onDOMReady(checkbox_checker); | |
|
197 | YUE.on(checkboxes,'click', checkbox_checker); | |
|
198 | ||
|
195 | 199 | YUE.on('rev_range_clear','click',function(e){ |
|
196 | 200 | for (var i=0; i<checkboxes.length; i++){ |
|
197 | 201 | var cb = checkboxes[i]; |
General Comments 0
You need to be logged in to leave comments.
Login now