aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/views/photo.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/views/photo.js')
-rw-r--r--src/js/views/photo.js4
1 files changed, 4 insertions, 0 deletions
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);