partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

commit 1e79446e902c24f5660eaba309633e3fc59e78fe
parent 39c23535955e555f9c4c37e32b4ec148e2f251af
Author: Felicitus <felicitus@felicitus.org>
Date:   Tue,  3 Jan 2012 12:19:22 +0100

Use mode "create" when duplicating parts

Diffstat:
Msrc/frontend/js/Components/Part/PartsManager.js | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/frontend/js/Components/Part/PartsManager.js b/src/frontend/js/Components/Part/PartsManager.js @@ -149,7 +149,10 @@ Ext.define('PartKeepr.PartManager', { Ext.data.Model.id(copy); copy.set("id", null); - var j = Ext.create("PartKeepr.PartEditorWindow"); + var j = Ext.create("PartKeepr.PartEditorWindow", { + partMode: 'create' + }); + j.editor.on("partSaved", this.onPartSaved, this); j.editor.editItem(copy); j.show();