aboutsummaryrefslogtreecommitdiffstats
path: root/www/js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js')
-rw-r--r--www/js/mobile.js3
-rw-r--r--www/js/views/photo.js3
2 files changed, 2 insertions, 4 deletions
diff --git a/www/js/mobile.js b/www/js/mobile.js
index e399dc4..40c4f82 100644
--- a/www/js/mobile.js
+++ b/www/js/mobile.js
@@ -452,8 +452,7 @@ function delPhoto() {
function takePhotoFail(message) {
if ( message != 'no image selected' &&
message != 'Selection cancelled.' &&
- message != 'Camera cancelled.'
- ) {
+ message != 'Camera cancelled.') {
navigator.notification.alert('There was a problem taking your photo', null, 'Photo');
console.log('error taking picture: ' + message);
}
diff --git a/www/js/views/photo.js b/www/js/views/photo.js
index c682070..5d451af 100644
--- a/www/js/views/photo.js
+++ b/www/js/views/photo.js
@@ -37,8 +37,7 @@
addPhotoFail: function() {
if ( message != 'no image selected' &&
message != 'Selection cancelled.' &&
- message != 'Camera cancelled.'
- ) {
+ message != 'Camera cancelled.' ) {
this.displayError(FMS.strings.photo_failed);
}
},