aboutsummaryrefslogtreecommitdiffstats
path: root/www/js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js')
-rw-r--r--www/js/mobile.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/www/js/mobile.js b/www/js/mobile.js
index 37c8763..e399dc4 100644
--- a/www/js/mobile.js
+++ b/www/js/mobile.js
@@ -450,8 +450,13 @@ function delPhoto() {
}
function takePhotoFail(message) {
- alert('There was a problem taking your photo');
- console.log('error taking picture: ' + message);
+ if ( message != 'no image selected' &&
+ message != 'Selection cancelled.' &&
+ message != 'Camera cancelled.'
+ ) {
+ navigator.notification.alert('There was a problem taking your photo', null, 'Photo');
+ console.log('error taking picture: ' + message);
+ }
}
function takePhoto(type) {