Skip to content

Commit

Permalink
Merge pull request #1957 from ChurchCRM/2.6.0-1398-fix-group-images
Browse files Browse the repository at this point in the history
closes #1938 and #1939
  • Loading branch information
crossan007 authored Feb 20, 2017
2 parents 4f0c461 + 4a6d632 commit 623a977
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/CartView.php
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ function codename()
}

echo '<tr class="'.$sRowClass.'">';
echo '<td><img src="'.SystemURLs::getRootPath().'/api/persons/'.$per_ID.'/thumbnail" class="direct-chat-img"> &nbsp <a href="PersonView.php?PersonID='.$per_ID.'">'.FormatFullName($per_Title, $per_FirstName, $per_MiddleName, $per_LastName, $per_Suffix, 1).'</a></td>';
echo '<td><img data-name="'.$per_FirstName.' '.$per_LastName.'"data-src="'.SystemURLs::getRootPath().'/api/persons/'.$per_ID.'/thumbnail" class="direct-chat-img initials-image"> &nbsp <a href="PersonView.php?PersonID='.$per_ID.'">'.FormatFullName($per_Title, $per_FirstName, $per_MiddleName, $per_LastName, $per_Suffix, 1).'</a></td>';
echo '<td align="center">'.$sValidAddy.'</td>';
echo '<td align="center">'.$sValidEmail.'</td>';
echo '<td><a href="CartView.php?RemoveFromPeopleCart='.
Expand Down
3 changes: 2 additions & 1 deletion src/skin/js/GroupView.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ function initDataTable() {
title: 'Name',
data: 'PersonId',
render: function (data, type, full, meta) {
return '<img src="' + window.CRM.root + '/api/persons/' + full.PersonId + '/photo" class="direct-chat-img"> &nbsp <a href="PersonView.php?PersonID="' + full.PersonId + '"><a target="_top" href="PersonView.php?PersonID=' + full.PersonId + '">' + full.Person.FirstName + " " + full.Person.LastName + '</a>';
return '<img data-name="'+full.Person.FirstName + ' ' + full.Person.LastName + '" data-src="' + window.CRM.root + '/api/persons/' + full.PersonId + '/thumbnail" class="direct-chat-img initials-image"> &nbsp <a href="PersonView.php?PersonID="' + full.PersonId + '"><a target="_top" href="PersonView.php?PersonID=' + full.PersonId + '">' + full.Person.FirstName + " " + full.Person.LastName + '</a>';
}
},
{
Expand Down Expand Up @@ -299,6 +299,7 @@ function initDataTable() {
],
"fnDrawCallback": function (oSettings) {
$("#iTotalMembers").text(oSettings.aoData.length);
$("#membersTable .initials-image").initial();
},
"createdRow": function (row, data, index) {
$(row).addClass("groupRow");
Expand Down

0 comments on commit 623a977

Please sign in to comment.