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