aboutsummaryrefslogtreecommitdiffstats
path: root/src/js
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2013-07-19 11:31:54 +0100
committerStruan Donald <struan@exo.org.uk>2013-07-19 11:31:54 +0100
commit0928b917367850f269197369b7e0d5ada0f01650 (patch)
treed9a6466a57b861f8dc37095c7946ef4bc15c87bf /src/js
parent2a477c0fe37fc6f3b5a53f728f955ad197d24480 (diff)
avoid distorting photo placeholder image. Fixes #50
Diffstat (limited to 'src/js')
-rw-r--r--src/js/views/photo.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/js/views/photo.js b/src/js/views/photo.js
index 6a2b8f6..e3bb489 100644
--- a/src/js/views/photo.js
+++ b/src/js/views/photo.js
@@ -57,7 +57,7 @@
var that = this;
move.done( function( file ) {
- $('#photo').attr('src', file.toURL());
+ $('#photo').attr('src', file.toURL()).addClass('small').removeClass('placeholder');
that.model.set('file', file.toURL());
FMS.saveCurrentDraft();
@@ -86,7 +86,7 @@
del.done( function() {
that.model.set('file', '');
FMS.saveCurrentDraft();
- $('#photo').attr('src', 'images/placeholder-photo.png');
+ $('#photo').attr('src', 'images/placeholder-photo.png').addClass('placeholder').removeClass('small');
$('#photo-next-btn .ui-btn-text').text('Skip');
$('#id_del_photo_button').parents('.ui-btn').hide();