From 478f3d4c387d67cb54a02ba373bfb4655d7a19f7 Mon Sep 17 00:00:00 2001 From: Gubolin Date: Tue, 9 Sep 2014 11:51:31 +0200 Subject: add file blocks --- blocks.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'blocks.js') diff --git a/blocks.js b/blocks.js index 735d36b..9aec7f4 100644 --- a/blocks.js +++ b/blocks.js @@ -844,6 +844,18 @@ SyntaxElementMorph.prototype.labelPart = function (spec) { ); part.setContents(['date']); break; + case '%fileOrDir': + part = new InputSlotMorph( + null, // text + false, // non-numeric + { + 'file': ['file'], + 'directory': ['directory'] + }, + true // read-only + ); + part.setContents(['file']); + break; case '%locations': part = new InputSlotMorph( null, // text -- cgit v1.3.1