Browse Source
only send photo property if there is a photo
pull/82/head
Aaron Parecki
8 years ago
No known key found for this signature in database
GPG Key ID: 276C2817346D6056
1 changed files with
1 additions and
1 deletions
-
views/new-post.php
|
@ -677,7 +677,7 @@ $(function(){ |
|
|
if(photos.length == 1) { |
|
|
if(photos.length == 1) { |
|
|
entry['photo'] = []; |
|
|
entry['photo'] = []; |
|
|
appendPhotoToFormData(photos[0], "photo"); |
|
|
appendPhotoToFormData(photos[0], "photo"); |
|
|
} else { |
|
|
|
|
|
|
|
|
} else if(photos.length > 1) { |
|
|
entry['photo'] = []; |
|
|
entry['photo'] = []; |
|
|
for(i=0; i<photos.length; i++) { |
|
|
for(i=0; i<photos.length; i++) { |
|
|
appendPhotoToFormData(photos[i], "photo[]"); |
|
|
appendPhotoToFormData(photos[i], "photo[]"); |
|
|