aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2013-07-16 16:44:19 +0100
committerStruan Donald <struan@exo.org.uk>2013-07-16 16:44:19 +0100
commit9e43c4f1d52b437996fccf1a528a41591963ff99 (patch)
treeaa33a7f1a3b87dfa474cf51dd562f23e29eee6db /src
parent7b34700bd509dbe724ce03472237f312854eaca3 (diff)
If the category extras lookup fails display error. Fixes #48.
Diffstat (limited to 'src')
-rw-r--r--src/js/strings.js1
-rw-r--r--src/js/views/details.js2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/js/strings.js b/src/js/strings.js
index dd82aaf..5738c32 100644
--- a/src/js/strings.js
+++ b/src/js/strings.js
@@ -32,6 +32,7 @@
report_send_error: 'There was a problem submitting your report. Please try again',
missing_location: 'Please enter a location',
location_check_failed: 'There was a problem checking we cover this location. Please try again later.',
+ category_extra_check_error: 'There was a problem checking if we have all the details we need. Please try again later',
locate_dismissed: 'Please search for a street name and area, or postcode.',
geolocation_failed: 'Could not determine your location, please search for a street name and area, or postcode instead.',
geolocation_denied: 'Could not access location services. Please check permissions.',
diff --git a/src/js/views/details.js b/src/js/views/details.js
index a9692b9..514b84f 100644
--- a/src/js/views/details.js
+++ b/src/js/views/details.js
@@ -94,7 +94,7 @@
}
},
error: function() {
- this.navigate( that.next );
+ alert(FMS.strings.category_extra_check_error);
}
} );
}