diff options
author | Struan Donald <struan@exo.org.uk> | 2013-08-21 16:39:00 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2013-08-21 16:39:00 +0100 |
commit | a70ac40a43a0d7e403bf44243013fb20698347c3 (patch) | |
tree | aa3a347894a1d290a0f8a158542f1f389f17df02 /src/js | |
parent | d8d04399c728a492e0523216b3be82fb6fa3b2eb (diff) |
Change position of remove photo button
To stop it accidentally being mistaken for the next action button move
the photo button to be a red X button in the lower right corner of the
photo.
Fixes #112
Diffstat (limited to 'src/js')
-rw-r--r-- | src/js/views/photo.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/js/views/photo.js b/src/js/views/photo.js index 2d03e1c..9d94b9a 100644 --- a/src/js/views/photo.js +++ b/src/js/views/photo.js @@ -23,7 +23,7 @@ $('#id_photo_button').parents('.ui-btn').hide(); $('#id_existing').parents('.ui-btn').hide(); } else { - this.$('#id_del_photo_button').parents('.ui-btn').hide(); + this.$('#id_del_photo_button').hide(); } }, @@ -66,10 +66,10 @@ FMS.saveCurrentDraft(); $('#photo-next-btn .ui-btn-text').text('Next'); - $('#id_del_photo_button').parents('.ui-btn').show(); $('#id_photo_button').parents('.ui-btn').hide(); $('#id_existing').parents('.ui-btn').hide(); $('#photo').show(); + window.setTimeout(function() { $('#id_del_photo_button').show() }, 500); window.setTimeout(function() { $.mobile.loading('hide') }, 100); }); @@ -92,12 +92,12 @@ var del = FMS.files.deleteURI( this.model.get('file') ); del.done( function() { + $('#id_del_photo_button').hide(); that.model.set('file', ''); FMS.saveCurrentDraft(true); $('#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(); $('#id_photo_button').parents('.ui-btn').show(); $('#id_existing').parents('.ui-btn').show(); }); |