diff options
| author | Gubolin <gubolin@fantasymail.de> | 2014-09-09 11:51:31 +0200 |
|---|---|---|
| committer | Gubolin <gubolin@fantasymail.de> | 2014-09-09 11:51:31 +0200 |
| commit | 478f3d4c387d67cb54a02ba373bfb4655d7a19f7 (patch) | |
| tree | 73acf4c2b864a18a6634ac6be5db4eca9bea767f /blocks.js | |
| parent | a7b3c537edf83b8415716f930fd3fe518638c4db (diff) | |
| download | snap-478f3d4c387d67cb54a02ba373bfb4655d7a19f7.tar.gz snap-478f3d4c387d67cb54a02ba373bfb4655d7a19f7.zip | |
add file blocks
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 |
