diff options
author | Struan Donald <struan@exo.org.uk> | 2013-06-11 13:03:38 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2013-06-11 13:03:38 +0100 |
commit | 73c9ac7e62ba29639c2f15039764b314b69d194f (patch) | |
tree | ffd56bf5d6b5b9cf3b78b218202b114df1b30889 /www/js | |
parent | e5941bcca6cba902bbee7bda79cccbc5da141ebf (diff) |
use correct button hiding/showing code on photo screen
Diffstat (limited to 'www/js')
-rw-r--r-- | www/js/views/photo.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/www/js/views/photo.js b/www/js/views/photo.js index 041d573..8077749 100644 --- a/www/js/views/photo.js +++ b/www/js/views/photo.js @@ -47,9 +47,9 @@ FMS.saveCurrentDraft(); $('#photo-next-btn .ui-btn-text').text('Next'); - $('#id_del_photo_button').show(); - $('#id_photo_button').hide(); - $('#id_existing').hide(); + $('#id_del_photo_button').parents('.ui-btn').show(); + $('#id_photo_button').parents('.ui-btn').hide(); + $('#id_existing').parents('.ui-btn').hide(); }); move.fail( function() { that.addPhotoFail(); } ); @@ -73,9 +73,9 @@ $('#photo').attr('src', 'images/placeholder-photo.png'); $('#photo-next-btn .ui-btn-text').text('Skip'); - $('#id_del_photo_button').hide(); - $('#id_photo_button').show(); - $('#id_existing').show(); + $('#id_del_photo_button').parents('.ui-btn').hide(); + $('#id_photo_button').parents('.ui-btn').show(); + $('#id_existing').parents('.ui-btn').show(); }); } |