summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorHendrik Leppelsack <hendrik@leppelsack.de>2017-10-26 13:33:13 +0200
committerHendrik Leppelsack <hendrik@leppelsack.de>2017-10-26 13:33:13 +0200
commit1de8cdb30ec67689712a2cd8ab4392b96b70a7b3 (patch)
treebe4128f79226054a37be55c90277076211a52dc1 /templates
parent86189b0fd93299297993db7ba047ba27c28f9805 (diff)
only accept image files for contact photos
Diffstat (limited to 'templates')
-rw-r--r--templates/avatar.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/avatar.html b/templates/avatar.html
index b49601a1..c09024ca 100644
--- a/templates/avatar.html
+++ b/templates/avatar.html
@@ -1,7 +1,7 @@
<div ng-if="ctrl.contact.failedProps.indexOf('photo') !== -1" class="icon-error"></div>
<img ng-show="contact.photo()!==undefined" class="contactdetails__logo avatar" id="contact-avatar" data-ng-src="{{contact.photo()}}" ng-click="ctrl.openPhoto()" />
<div class="avatar-options">
- <input type="file" id="avatar-upload" class="hidden"/>
+ <input type="file" id="avatar-upload" class="hidden" accept="image/*" />
<label for="avatar-upload" class="icon-upload-white"></label>
<div class="icon-delete-white" ng-show="contact.photo()!==undefined" ng-click="ctrl.removePhoto()"></div>
<div class="icon-fullscreen-white" ng-show="contact.photo()!==undefined" ng-click="ctrl.openPhoto()"></div>