Changeset 29572

Show
Ignore:
Timestamp:
09.12.2014 13:41:14 (5 years ago)
Author:
davidb
Message:

Change to call createFlag() to force Render-3d to show the new image

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • other-projects/nz-flag-design/trunk/main-form/iterative-design.html

    r29571 r29572  
    102102                        url: "../design-2d/image-data-to-file.jsp", 
    103103                        data: { imageData : datauri }, 
    104                         success: function() { console.log("Exported PNG data to file: " + datauri) } 
     104                        success: function() {  
     105                      console.log("Exported PNG data to file "); 
     106                  var render_frame = document.getElementById('render-3d-iframe'); 
     107                  render_frame.contentWindow.createFlag(); // triggers reload 
     108                } 
    105109                    }); 
    106110              }