aboutsummaryrefslogtreecommitdiffstats
path: root/www/js/mobile.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js/mobile.js')
-rw-r--r--www/js/mobile.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/www/js/mobile.js b/www/js/mobile.js
index f717bd4..e90aea3 100644
--- a/www/js/mobile.js
+++ b/www/js/mobile.js
@@ -229,7 +229,11 @@ function takePhotoFail(message) {
}
function takePhoto(type) {
- navigator.camera.getPicture(takePhotoSuccess, takePhotoFail, { quality: 50, destinationType: Camera.DestinationType.FILE_URI, sourceType: type });
+ var save_to_album = false;
+ if ( type == navigator.camera.PictureSourceType.CAMERA ) {
+ save_to_album = true;
+ }
+ navigator.camera.getPicture(takePhotoSuccess, takePhotoFail, { saveToPhotoAlbum: save_to_album, quality: 50, destinationType: Camera.DestinationType.FILE_URI, sourceType: type });
}
function check_name( name, msg ) {