Show More
@@ -712,6 +712,14 b' var deleteComment = function(comment_id)' | |||||
712 | } |
|
712 | } | |
713 |
|
713 | |||
714 | var updateReviewers = function(reviewers_ids){ |
|
714 | var updateReviewers = function(reviewers_ids){ | |
|
715 | if (reviewers_ids === undefined){ | |||
|
716 | var reviewers_ids = []; | |||
|
717 | var ids = YUQ('#review_members input'); | |||
|
718 | for(var i=0; i<ids.length;i++){ | |||
|
719 | var id = ids[i].value | |||
|
720 | reviewers_ids.push(id); | |||
|
721 | } | |||
|
722 | } | |||
715 | var url = AJAX_UPDATE_PULLREQUEST; |
|
723 | var url = AJAX_UPDATE_PULLREQUEST; | |
716 | var postData = {'_method':'put', |
|
724 | var postData = {'_method':'put', | |
717 | 'reviewers_ids': reviewers_ids}; |
|
725 | 'reviewers_ids': reviewers_ids}; | |
@@ -852,6 +860,7 b' var removeReviewer = function(reviewer_i' | |||||
852 | if (el.parentNode !== undefined){ |
|
860 | if (el.parentNode !== undefined){ | |
853 | el.parentNode.removeChild(el); |
|
861 | el.parentNode.removeChild(el); | |
854 | } |
|
862 | } | |
|
863 | updateReviewers(); | |||
855 | } |
|
864 | } | |
856 |
|
865 | |||
857 | var fileBrowserListeners = function(current_url, node_list_url, url_base){ |
|
866 | var fileBrowserListeners = function(current_url, node_list_url, url_base){ |
@@ -198,16 +198,9 b'' | |||||
198 | // inject comments into they proper positions |
|
198 | // inject comments into they proper positions | |
199 | var file_comments = YUQ('.inline-comment-placeholder'); |
|
199 | var file_comments = YUQ('.inline-comment-placeholder'); | |
200 | renderInlineComments(file_comments); |
|
200 | renderInlineComments(file_comments); | |
201 |
|
201 | |||
202 | YUE.on(YUD.get('update_pull_request'),'click',function(e){ |
|
202 | YUE.on(YUD.get('update_pull_request'),'click',function(e){ | |
203 |
|
203 | updateReviewers(); | ||
204 | var reviewers_ids = []; |
|
|||
205 | var ids = YUQ('#review_members input'); |
|
|||
206 | for(var i=0; i<ids.length;i++){ |
|
|||
207 | var id = ids[i].value |
|
|||
208 | reviewers_ids.push(id); |
|
|||
209 | } |
|
|||
210 | updateReviewers(reviewers_ids); |
|
|||
211 | }) |
|
204 | }) | |
212 | }) |
|
205 | }) | |
213 | </script> |
|
206 | </script> |
General Comments 0
You need to be logged in to leave comments.
Login now