aboutsummaryrefslogtreecommitdiffstats
path: root/www/js/mobile.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js/mobile.js')
-rw-r--r--www/js/mobile.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/www/js/mobile.js b/www/js/mobile.js
index c536fcb..53be94c 100644
--- a/www/js/mobile.js
+++ b/www/js/mobile.js
@@ -587,9 +587,8 @@ function display_saved_report() {
$('#title').text(r.title);
$('#details').text(r.detail);
- if ( r.file ) {
- $('#photo').attr('src', r.file);
- $('#photo_link').attr('href', r.file);
+ if ( r.file() ) {
+ $('#photo_link').attr('href', r.file());
$('#report-img').show();
} else {
$('#report-img').hide();