summaryrefslogtreecommitdiff
path: root/blocks.js
diff options
context:
space:
mode:
authorGubolin <gubolin@fantasymail.de>2014-09-09 11:51:31 +0200
committerGubolin <gubolin@fantasymail.de>2014-09-09 11:51:31 +0200
commit478f3d4c387d67cb54a02ba373bfb4655d7a19f7 (patch)
tree73acf4c2b864a18a6634ac6be5db4eca9bea767f /blocks.js
parenta7b3c537edf83b8415716f930fd3fe518638c4db (diff)
downloadsnap-478f3d4c387d67cb54a02ba373bfb4655d7a19f7.tar.gz
snap-478f3d4c387d67cb54a02ba373bfb4655d7a19f7.zip
add file blocks
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