summaryrefslogtreecommitdiff
path: root/blocks.js
diff options
context:
space:
mode:
Diffstat (limited to 'blocks.js')
-rw-r--r--blocks.js12
1 files changed, 12 insertions, 0 deletions
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