Editor HTML 5.0 compliant.

This commit is contained in:
Paulo Gustavo Veiga 2011-03-28 20:53:18 -03:00
parent 6c9e057503
commit 08daec0092
3 changed files with 5 additions and 4 deletions

View File

@ -589,15 +589,16 @@ function fontFamilyPanel()
function shapeTypePanel()
{
var shapeTypePanel = ['rectagle','rounded rectagle','line','elipse'];
var shapeTypePanel = ['rectagle','rounded_rectagle','line','elipse'];
var updateFunction = function(value)
{
designer.setShape2SelectedNode(value);
designer.setShape2SelectedNode(value.replace('_',' '));
};
var onFocusValue = function(selectedNode)
{
return selectedNode.getShapeType();
return selectedNode.getShapeType().replace(' ','_');
};
buildPanel('topicShape', 'topicShapePanel', shapeTypePanel, updateFunction, onFocusValue);

View File

@ -103,7 +103,7 @@
<div id="topicShapePanel" class="toolbarPanel">
<!--<div id="automatic" class="toolbarPanelLink">Automatic</div>-->
<div id="rectagle" class="toolbarPanelLink"><img src="../images/shape-rectangle.png" alt="Rectangle" width="40" height="25"></div>
<div id="rounded rectagle" class="toolbarPanelLink"><img src="../images/shape-rectangle-rounded.png" alt="Rounded Rectangle" width="40" height="25"></div>
<div id="rounded_rectagle" class="toolbarPanelLink"><img src="../images/shape-rectangle-rounded.png" alt="Rounded Rectangle" width="40" height="25"></div>
<div id="line" class="toolbarPanelLink"><img src="../images/shape-line.png" alt="Line" width="40" height="7"></div>
<div id="elipse" class="toolbarPanelLink"><img src="../images/shape-elipse.png" alt="Elipse" width="40" height="25"></div>
</div>

View File