##// END OF EJS Templates
rhodecode.js: align addReviewMember html with pullrequest_show.html
Mads Kiilerich -
r4172:031117f7 rhodecode-2.2.5-gpl
parent child Browse files
Show More
@@ -1452,16 +1452,22 b' var MentionsAutoComplete = function (div'
1452 }
1452 }
1453
1453
1454 var addReviewMember = function(id,fname,lname,nname,gravatar_link){
1454 var addReviewMember = function(id,fname,lname,nname,gravatar_link){
1455 var tmpl = '<li id="reviewer_{2}">'+
1455 var displayname = "{0} {1} ({2})".format(fname, lname, nname);
1456 '<div class="reviewers_member">'+
1456 var element = (
1457 '<div class="gravatar"><img alt="gravatar" src="{0}"/> </div>'+
1457 ' <li id="reviewer_{2}">\n'+
1458 '<div style="float:left">{1}</div>'+
1458 ' <div class="reviewers_member">\n'+
1459 '<input type="hidden" value="{2}" name="review_members" />'+
1459 ' <div class="reviewer_status tooltip" title="not_reviewed">\n'+
1460 '<span class="delete_icon action_button" onclick="removeReviewMember({2})"></span>'+
1460 ' <img src="/images/icons/flag_status_not_reviewed.png"/>\n'+
1461 '</div>'+
1461 ' </div>\n'+
1462 '</li>' ;
1462 ' <div class="reviewer_gravatar gravatar"><img alt="gravatar" src="{0}"/> </div>\n'+
1463 var displayname = "{0} {1} ({2})".format(fname,lname,nname);
1463 ' <div style="float:left;">{1}</div>\n'+
1464 var element = tmpl.format(gravatar_link,displayname,id);
1464 ' <input type="hidden" value="{2}" name="review_members" />\n'+
1465 ' <div class="reviewer_member_remove action_button" onclick="removeReviewMember({2})">\n'+
1466 ' <i class="icon-remove-sign" style="color: #FF4444;"></i>\n'+
1467 ' </div>\n'+
1468 ' </div>\n'+
1469 ' </li>\n'
1470 ).format(gravatar_link, displayname, id);
1465 // check if we don't have this ID already in
1471 // check if we don't have this ID already in
1466 var ids = [];
1472 var ids = [];
1467 $('#review_members').find('li').each(function() {
1473 $('#review_members').find('li').each(function() {
General Comments 0
You need to be logged in to leave comments. Login now