From cad54f7433f48a016f3ebc8ae37a6fe75090bcfb Mon Sep 17 00:00:00 2001 From: Nathan Dinsmore Date: Sun, 21 Apr 2013 13:53:39 -0400 Subject: Fixed #23 Only one of each kind of dialog can now be open at any given time. You can still open multiple dialogs for editing a costume and editing a block. --- objects.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'objects.js') diff --git a/objects.js b/objects.js index dc47375..9939dec 100644 --- a/objects.js +++ b/objects.js @@ -4476,11 +4476,7 @@ Costume.prototype.edit = function (aWorld) { dialog.fixLayout(); dialog.drawNew(); dialog.fixLayout(); - if (aWorld) { - aWorld.add(dialog); - aWorld.keyboardReceiver = dialog; - dialog.setCenter(aWorld.center()); - } + dialog.popUp(aWorld); }; // Costume thumbnail -- cgit v1.3.1