diff options
author | Struan Donald <struan@exo.org.uk> | 2013-07-23 13:15:44 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2013-07-23 13:15:44 +0100 |
commit | 05ec13abf0c4f40e2fb89f6b78a2e11a732f3bbf (patch) | |
tree | 6d695194baa338a3703c6533a6733823d5cd6c2c /src/js/views/submit.js | |
parent | 824d64b179b3c49370d571b71f498eef7ed990d5 (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.js | 4 |
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); } }, |