aboutsummaryrefslogtreecommitdiffstats
path: root/src/js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js')
-rw-r--r--src/js/strings.js1
-rw-r--r--src/js/views/photo.js4
2 files changed, 5 insertions, 0 deletions
diff --git a/src/js/strings.js b/src/js/strings.js
index a421279..905b2c3 100644
--- a/src/js/strings.js
+++ b/src/js/strings.js
@@ -42,6 +42,7 @@
invalid_email: 'Invalid email',
invalid_report: 'Invalid report',
photo_failed: 'There was a problem taking your photo.',
+ photo_added: 'Photo added',
photo_loading: 'Uploading images may take some time, please be patient',
upload_aborted: 'There was a problem uploading your report.',
try_again: 'Try Again',
diff --git a/src/js/views/photo.js b/src/js/views/photo.js
index aa9c9ee..a6bbb47 100644
--- a/src/js/views/photo.js
+++ b/src/js/views/photo.js
@@ -60,6 +60,8 @@
var that = this;
move.done( function( file ) {
+ $('#nophoto_title').hide();
+ $('#photo_title').html(FMS.strings.photo_added).show();
$('#photo').attr('src', file.toURL()).addClass('small').removeClass('placeholder');
that.model.set('file', file.toURL());
FMS.saveCurrentDraft();
@@ -91,6 +93,8 @@
var del = FMS.files.deleteURI( this.model.get('file') );
del.done( function() {
+ $('#photo_title').hide();
+ $('#nophoto_title').show();
$('#id_del_photo_button').hide();
that.model.set('file', '');
FMS.saveCurrentDraft(true);