diff options
-rw-r--r-- | www/js/views/photo.js | 2 | ||||
-rw-r--r-- | www/templates/en/photo.html | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/www/js/views/photo.js b/www/js/views/photo.js index 6ea7f40..4171e6a 100644 --- a/www/js/views/photo.js +++ b/www/js/views/photo.js @@ -33,6 +33,7 @@ this.model.set('file', imgURI); FMS.saveCurrentDraft(); + $('#photo-next-btn .ui-btn-text').text('Next'); $('#display_photo').show(); $('#add_photo').hide(); }, @@ -50,6 +51,7 @@ FMS.saveCurrentDraft(); $('#photo').attr('src', ''); + $('#photo-next-btn .ui-btn-text').text('Skip'); $('#display_photo').hide(); $('#add_photo').show(); } diff --git a/www/templates/en/photo.html b/www/templates/en/photo.html index 042122e..a16369b 100644 --- a/www/templates/en/photo.html +++ b/www/templates/en/photo.html @@ -1,6 +1,10 @@ <div data-role="header" data-position="fixed" > <h1>Add Photo</h1> + <% if ( file == '' ) { %> <a id="photo-next-btn" data-icon="arrow-r" data-iconpos="right" class="ui-btn-right">Skip</a> + <% } else { %> + <a id="photo-next-btn" data-icon="arrow-r" data-iconpos="right" class="ui-btn-right">Next</a> + <% } %> </div> <div class="container" data-enhance="false"> <div class="content" role="main"> |