diff rhodecode/templates/pullrequests/pullrequest_show.html @ 3106:e26c11b68850 beta

remove reviewers button removes them without need of hitting save button.
author Marcin Kuzminski <marcin@python-works.com>
date Fri, 14 Dec 2012 03:31:44 +0100
parents 706b9f84ade3
children 68f9c216377d
line wrap: on
line diff
--- a/rhodecode/templates/pullrequests/pullrequest_show.html	Fri Dec 14 03:24:30 2012 +0100
+++ b/rhodecode/templates/pullrequests/pullrequest_show.html	Fri Dec 14 03:31:44 2012 +0100
@@ -198,16 +198,9 @@
           // inject comments into they proper positions
           var file_comments = YUQ('.inline-comment-placeholder');
           renderInlineComments(file_comments);
-
+          
           YUE.on(YUD.get('update_pull_request'),'click',function(e){
-
-        	  var reviewers_ids = [];
-        	  var ids = YUQ('#review_members input');
-        	  for(var i=0; i<ids.length;i++){
-        		  var id = ids[i].value
-        		  reviewers_ids.push(id);
-        	  }
-        	  updateReviewers(reviewers_ids);
+        	  updateReviewers();
           })
       })
     </script>