aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Arter <davea@mysociety.org>2015-08-20 11:58:34 +0100
committerDave Arter <davea@mysociety.org>2015-08-28 14:27:16 +0100
commitc2097548f58db2efe96dc5442d85526000176393 (patch)
tree9a6e3b8dc096a97424bc9ff0c9351f893c9d013d
parentc81b0515c2a10d2ccfc034245b51f339b0cae0a5 (diff)
Fix undefined value error
-rw-r--r--www/js/views/offline.js2
-rw-r--r--www/js/views/photo.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/www/js/views/offline.js b/www/js/views/offline.js
index 5f25223..711f7d3 100644
--- a/www/js/views/offline.js
+++ b/www/js/views/offline.js
@@ -98,7 +98,7 @@
move.fail( function() { that.addPhotoFail(); } );
},
- addPhotoFail: function() {
+ addPhotoFail: function(message) {
if ( message != 'no image selected' &&
message != 'Selection cancelled.' &&
message != 'Camera cancelled.' ) {
diff --git a/www/js/views/photo.js b/www/js/views/photo.js
index f24207e..bbef5fa 100644
--- a/www/js/views/photo.js
+++ b/www/js/views/photo.js
@@ -103,7 +103,7 @@
move.fail( function() { that.addPhotoFail(); } );
},
- addPhotoFail: function() {
+ addPhotoFail: function(message) {
$('#photo').show();
$.mobile.loading('hide');
if ( message != 'no image selected' &&