Ignore:
Timestamp:
2015-03-27T10:24:28+13:00 (9 years ago)
Author:
davidb
Message:

Additional coding so the colour palette choices now feed through to the svg-editor

File:
1 edited

Legend:

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

    r29809 r29811  
    278278                        //don't load the previous drawing!
    279279                        reconfigureSvgCanvas(flagCanvasSettings);
     280
     281                    //if (typeof flagCanvasSettings !== 'undefined') {
     282                setTimeout(function() {
     283                  console.log("**** design frame = " + design_frame);
     284                  console.log("**** design frame content window = " + design_frame.contentWindow);
     285                  design_frame.contentWindow.setSVGEditorColourPalette(flagCanvasSettings);
     286                }, 500);
     287
     288                //}
    280289                    });
    281290                }
     
    313322                        else {               
    314323                            reconfigureSvgCanvas(flagCanvasSettings);   
     324                            var design_frame = document.getElementById('design-2d-iframe');
     325                    design_frame.contentWindow.setSVGEditorColourPalette(flagCanvasSettings);
    315326                        }
    316327                    }
Note: See TracChangeset for help on using the changeset viewer.