diff options
author | Struan Donald <struan@exo.org.uk> | 2012-11-08 11:05:51 +0000 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2012-11-08 11:05:51 +0000 |
commit | c292c6041035d8508083a401ad5069d53d97bee9 (patch) | |
tree | fff45ec7c0b02b5f70586d6da449f45dd8487868 /www/js | |
parent | 28924a1c1a0da0bb88beddc51bde737af19f1a00 (diff) |
restore photos from saved reports
Diffstat (limited to 'www/js')
-rw-r--r-- | www/js/mobile.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/www/js/mobile.js b/www/js/mobile.js index 66fb1db..b1d2950 100644 --- a/www/js/mobile.js +++ b/www/js/mobile.js @@ -619,7 +619,12 @@ function submit_problem_show() { //category: $('#form_category').val(); $('#form_phone').val(r.phone); $('#pc').val(r.pc); - + if ( r.file ) { + $('#form_photo').val(r.file); + $('#photo').attr('src', r.file ); + $('#add_photo').hide(); + $('#display_photo').show(); + } } $('#mapForm').submit(postReport); |