fixes #146 - User creation screen - image selection
This commit is contained in:
parent
11efc3c8ab
commit
2e4becdaa4
4 changed files with 16 additions and 8 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue