diff options
Diffstat (limited to 'blocks.js')
| -rw-r--r-- | blocks.js | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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 |
