fixes #146 - User creation screen - image selection

This commit is contained in:
Luke Pulverenti 2013-04-17 12:45:37 -04:00
parent 11efc3c8ab
commit 2e4becdaa4
4 changed files with 16 additions and 8 deletions

View file

@ -146,7 +146,11 @@
var file = UserImagePage.currentFile;
if (!file || !file.type.match('image.*')) {
if (!file) {
return false;
}
if (file.type != "image/png" && file.type != "image/jpeg" && file.type != "image/jpeg") {
return false;
}

View file

@ -27,7 +27,7 @@
<form id="uploadUserImageForm">
<ul data-role="listview" class="ulForm">
<li id="fldNewImage">
<p>1:1 Aspect Ratio Recommended</p>
<p>1:1 Aspect Ratio Recommended. JPG/PNG only.</p>
<input type="file" accept="image/*" id="uploadUserImage" name="uploadUserImage" onchange="UserImagePage.onFileUploadChange(this);" />
<div id="userImageDropZone" class="imageDropZone">