Changeset 29963
- Timestamp:
- 2015-06-08T11:46:02+12:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
other-projects/nz-flag-design/trunk/main-form/svg-edit-local/extensions/ext-advanced.js
r29811 r29963 83 83 84 84 // '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']; 86 86 87 87 // Toggle the display attributes of the selected advanced elements … … 106 106 107 107 function setSVGEditorColourPalette(flagCanvasSettings) { 108 109 console.log("**** setSVGEditorColourPalette(), flagCanvasSettings.modified = " + flagCanvasSettings.modified); 108 110 111 if (!flagCanvasSettings.modified) { 112 // nothing has changed => nothing to do 113 return false; 114 } 115 109 116 var num_active_colours = flagCanvasSettings.colourPots.length; 110 117 console.log("*** num active colours = " + num_active_colours); … … 134 141 //$('#palette').empty(); 135 142 $('#palette').width(150); 136 137 return; 143 144 flagCanvasSettings.modified = false; 145 return true; 138 146 139 147 var str = '<div class="palette_item" data-rgb="none"></div>';
Note:
See TracChangeset
for help on using the changeset viewer.