From bdcd1b61b358e407f6e3e5bf897f0e296987d4c5 Mon Sep 17 00:00:00 2001 From: menglingjun Date: Fri, 16 Jan 2015 18:01:23 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AC=AC=E4=B8=80=E6=AC=A1=E6=96=B0=E5=BB=BA?= =?UTF-8?q?=E5=AD=97=E5=9E=8B=E6=97=B6=20=E5=88=9B=E5=BB=BA=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE"=20"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/fonteditor/controller/actions.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/fonteditor/controller/actions.js b/src/fonteditor/controller/actions.js index 2cde584..a0d5af2 100644 --- a/src/fonteditor/controller/actions.js +++ b/src/fonteditor/controller/actions.js @@ -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 () {