diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-09-15 15:29:30 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-09-16 07:23:29 +0200 |
commit | 996639f4fbd4107851efc11ee34b24cead43e790 (patch) | |
tree | 9351ddf424d608b71ecf50715105b7af1131487d /core/js/sharedialogshareelistview.js | |
parent | 886f1ed660e91edb8f370cf711ed395fdff7dc30 (diff) | |
download | nextcloud-server-996639f4fbd4107851efc11ee34b24cead43e790.tar.gz nextcloud-server-996639f4fbd4107851efc11ee34b24cead43e790.zip |
More unit tests for share dialog
Diffstat (limited to 'core/js/sharedialogshareelistview.js')
-rw-r--r-- | core/js/sharedialogshareelistview.js | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/core/js/sharedialogshareelistview.js b/core/js/sharedialogshareelistview.js index 463d2468bbd..c1d7ba4cf66 100644 --- a/core/js/sharedialogshareelistview.js +++ b/core/js/sharedialogshareelistview.js @@ -211,11 +211,12 @@ if(this.configModel.areAvatarsEnabled()) { this.$el.find('.avatar').each(function() { var $this = $(this); - $this.avatar($this.data('username'), 32); - }); - this.$el.find('.avatar.imageplaceholderseed').each(function() { - var $this = $(this); - $this.imageplaceholder($this.data('seed')); + if ($this.hasClass('imageplaceholderseed')) { + $this.css({width: 32, height: 32}); + $this.imageplaceholder($this.data('seed')); + } else { + $this.avatar($this.data('username'), 32); + } }); } |