Skip to content

Commit

Permalink
Merge pull request #382 from nextcloud/small-prerelease-fixes
Browse files Browse the repository at this point in the history
Small fixes
  • Loading branch information
juliusknorr authored Jan 12, 2018
2 parents 4ec2ae2 + e70045f commit ce3e979
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/directive/avatar.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ app.directive('avatar', function() {
scope.displayname = attr.displayname;
var value = attr.user;
var avatardiv = $(element).find('.avatardiv');
if(typeof attr.contactsmenu !== 'undefined' && attr.contactsmenu !== 'false' && oc_current_user !== value) {
if(typeof attr.contactsmenu !== 'undefined' && attr.contactsmenu !== 'false') {
avatardiv.contactsMenu(value, 0, $(element));
avatardiv.addClass('has-contactsmenu');
}
Expand Down
3 changes: 3 additions & 0 deletions js/directive/contactsmenudelete.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ app.directive('contactsmenudelete', function() {
link: function(scope, element, attr){
var user = attr.user;
var menu = $(element).parent().find('.contactsmenu-popover');
if (oc_current_user === user) {
menu.children(':first').remove();
}
var menuEntry = $('<li><a><span class="icon icon-delete"></span><span>' + t('deck', 'Remove user from card') + '</span></a></li>');
menuEntry.on('click', function () {
scope.removeAssignedUser(user);
Expand Down
2 changes: 1 addition & 1 deletion templates/part.boardlist.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
<span class="icon icon-close" ng-click="boardUpdateReset(b)" title="<?php p($l->t('Reset')); ?>"><span class="hidden-visually"><?php p($l->t('Reset')); ?></span></span>
</div>
<div class="app-popover-menu-utils" ng-if="b.deletedAt > 0">
<button class="icon icon-history button-inline" ng-click="boardDeleteUndo(b)" title="Undo board deletion - Otherwise the board will be deleted during the next cronjob run."><span class="hidden-visually"><?php p($l->t('Undo board deletion - Otherwise the board will be deleted during the next cronjob run.')); ?></span></button>
<button class="icon icon-history button-inline" ng-click="boardDeleteUndo(b)" title="<?php p($l->t('Undo board deletion - Otherwise the board will be deleted during the next cronjob run.')); ?>"><span class="hidden-visually"><?php p($l->t('Undo board deletion - Otherwise the board will be deleted during the next cronjob run.')); ?></span></button>
</div>
</td>
</tr>
Expand Down

0 comments on commit ce3e979

Please sign in to comment.