Changeset 29963


Ignore:
Timestamp:
2015-06-08T11:46:02+12:00 (9 years ago)
Author:
davidb
Message:

Further icons supressed by default

File:
1 edited

Legend:

Unmodified
Added
Removed
  • other-projects/nz-flag-design/trunk/main-form/svg-edit-local/extensions/ext-advanced.js

    r29811 r29963  
    8383   
    8484    // 'Advanced feature' elements
    85     var elements = ['sidepanels', 'editor_panel', 'tool_move_top', 'tool_move_bottom', 'tool_topath', 'tool_reorient', 'tool_make_link', 'idLabel', 'tool_angle', 'tool_blur', 'tool_position', 'xy_panel', 'rect_width_tool', 'rect_height_tool', 'cornerRadiusLabel'];
     85    var elements = ['sidepanels', 'editor_panel', 'tool_move_top', 'tool_move_bottom', 'tool_topath', 'tool_reorient', 'tool_make_link', 'idLabel', 'tool_angle', 'tool_blur', 'tool_position', 'xy_panel', 'rect_width_tool', 'rect_height_tool', 'cornerRadiusLabel', 'tool_polygon', 'tool_zoom', 'tool_path', 'tools_line_show', 'tool_image', 'tool_eyedropper', 'ext-panning'];
    8686
    8787    // Toggle the display attributes of the selected advanced elements
     
    106106
    107107function setSVGEditorColourPalette(flagCanvasSettings) {
     108
     109    console.log("**** setSVGEditorColourPalette(), flagCanvasSettings.modified = " + flagCanvasSettings.modified);
    108110   
     111    if (!flagCanvasSettings.modified) {
     112    // nothing has changed => nothing to do
     113    return false;
     114    }
     115
    109116    var num_active_colours = flagCanvasSettings.colourPots.length;
    110117    console.log("*** num active colours = " + num_active_colours);
     
    134141    //$('#palette').empty();
    135142    $('#palette').width(150);
    136    
    137     return;
     143
     144    flagCanvasSettings.modified = false;
     145    return true;
    138146
    139147    var str = '<div class="palette_item" data-rgb="none"></div>';
Note: See TracChangeset for help on using the changeset viewer.