use ng-src to avoid errors before scope is available

This commit is contained in:
Arik Fraimovich 2016-04-17 18:08:09 +03:00
parent 4ed1db3ccd
commit 152109a8ef
3 changed files with 4 additions and 4 deletions

View File

@ -191,7 +191,7 @@
{
"label": "Name",
"map": "name",
"cellTemplate": '<img src="{{dataRow.gravatar_url}}" height="40px"/> <a href="users/{{dataRow.id}}">{{dataRow.name}}</a>'
"cellTemplate": '<img ng-src="{{dataRow.gravatar_url}}" height="40px"/> <a href="users/{{dataRow.id}}">{{dataRow.name}}</a>'
},
{
'label': 'Joined',

View File

@ -17,7 +17,7 @@
refresh-delay="0"
ui-disable-choice="user.alreadyMember">
<div>
<img src="{{user.gravatar_url}}" height="24px">&nbsp;{{user.name}}
<img ng-src="{{user.gravatar_url}}" height="24px">&nbsp;{{user.name}}
<small ng-if="user.alreadyMember">(already member in this group)</small>
</div>
</ui-select-choices>
@ -30,7 +30,7 @@
<table class="table table-condensed table-hover">
<tbody>
<tr ng-repeat="member in members">
<td width="50px"><img src="{{member.gravatar_url}}" height="40px"/></td>
<td width="50px"><img ng-src="{{member.gravatar_url}}" height="40px"/></td>
<td>{{member.name}} <button class="pull-right btn btn-sm btn-danger" ng-click="removeMember(member)" ng-if="currentUser.isAdmin">Remove</button></td>
</tr>
</tbody>

View File

@ -12,7 +12,7 @@
<div ng-show="selectedTab == 'profile'" class="p-10">
<p>
<img src="{{user.gravatar_url}}"/>
<img ng-src="{{user.gravatar_url}}"/>
</p>
<p>