第一次新建字型时 创建项目"

"
This commit is contained in:
menglingjun
2015-01-16 18:01:23 +08:00
parent 6d0bbc523e
commit bdcd1b61b3

View File

@@ -85,6 +85,8 @@ define(
$.getJSON('./font/empty.json', function (imported) {
program.ttfManager.set(imported);
program.data.projectId = null;
// 建立项目 提示保存
actions.save();
});
},
@@ -150,6 +152,10 @@ define(
var selected = program.viewer.getSelected();
program.ttfManager.insertGlyf({}, selected[0]);
}
else {
// 没有项目 先建立一个项目
actions.new();
}
},
'add-online': function () {