aboutsummaryrefslogtreecommitdiffstats
path: root/www/js
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2013-06-11 13:03:38 +0100
committerStruan Donald <struan@exo.org.uk>2013-06-11 13:03:38 +0100
commit73c9ac7e62ba29639c2f15039764b314b69d194f (patch)
treeffd56bf5d6b5b9cf3b78b218202b114df1b30889 /www/js
parente5941bcca6cba902bbee7bda79cccbc5da141ebf (diff)
use correct button hiding/showing code on photo screen
Diffstat (limited to 'www/js')
-rw-r--r--www/js/views/photo.js12
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();
});
}