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);