提交 068d0f31 编写于 作者: C Catouse

* fixed an error of mindmap.

上级 24ea395b
此差异已折叠。
......@@ -47,6 +47,7 @@
// --------------------------------------------------
@import "../../../less/modules/animations.less";
@import "../../../less/modules/modals.less";
@import "../../../less/modules/modals.bootbox.less";
@import "../../../less/modules/tooltip.less";
@import "../../../less/modules/dropdowns.less";
@import "../../../less/modules/carousel.less";
......
......@@ -64,6 +64,7 @@
// --------------------------------------------------
@import "../../../less/modules/animations.less";
@import "../../../less/modules/modals.less";
@import "../../../less/modules/modals.bootbox.less";
@import "../../../less/modules/tooltip.less";
@import "../../../less/modules/dropdowns.less";
@import "../../../less/modules/carousel.less";
......
......@@ -503,7 +503,7 @@
}
nodeData.subSide = subSide;
if(!nodeData.colorHue)
if(typeof nodeData.colorHue === UDF)
{
nodeData.colorHue = Math.floor(((newColorIndex++) * 55) % 360);
}
......@@ -945,6 +945,10 @@
var text = $node.find('.text').text();
if(text != $node.data('origin-text'))
{
if(text == '')
{
$node.find('.text').text('');
}
$node.data('origin-text', text);
this.update({id: $node.data('id'), text: text});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册