diff options
author | Struan Donald <struan@exo.org.uk> | 2012-11-15 12:17:45 +0000 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2012-11-15 12:17:45 +0000 |
commit | e1f9329915adbdafec4255ab65af6fa0c6327b3e (patch) | |
tree | 6ae7968aea75d111b08d3d5fface56337d665636 /www/js/mobile.js | |
parent | a3a5c5cb2919eb9f35afee1b191d5ef9c00d26ca (diff) |
fix photo display bug on report page
Diffstat (limited to 'www/js/mobile.js')
-rw-r--r-- | www/js/mobile.js | 5 |
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(); |