aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/views/submit.js
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2013-07-23 13:15:44 +0100
committerStruan Donald <struan@exo.org.uk>2013-07-23 13:15:44 +0100
commit05ec13abf0c4f40e2fb89f6b78a2e11a732f3bbf (patch)
tree6d695194baa338a3703c6533a6733823d5cd6c2c /src/js/views/submit.js
parent824d64b179b3c49370d571b71f498eef7ed990d5 (diff)
change to use phonegap API alert call so we can use a title in
the alert box and then use own internal function to call this to ensure consistency
Diffstat (limited to 'src/js/views/submit.js')
-rw-r--r--src/js/views/submit.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/js/views/submit.js b/src/js/views/submit.js
index c98dbf3..2d122d9 100644
--- a/src/js/views/submit.js
+++ b/src/js/views/submit.js
@@ -100,9 +100,9 @@
onReportError: function(model, err, options) {
if ( err.errors ) {
- navigator.notification.alert( FMS.strings.sync_error + ': ' + err.errors, null, 'FixMyStreet' );
+ this.displayAlert(FMS.strings.sync_error + ': ' + err.errors);
} else {
- navigator.notification.alert( FMS.strings.unknown_sync_error, null, 'FixMyStreet' );
+ this.displayAlert(FMS.strings.unknown_sync_error);
}
},