summaryrefslogtreecommitdiff
path: root/blocks.js
diff options
context:
space:
mode:
authorGubolin <gubolin@fantasymail.de>2014-09-07 12:44:00 +0200
committerGubolin <gubolin@fantasymail.de>2014-09-07 12:44:00 +0200
commitf8b3ef7c27f09b6638b8d024512e8289b844e651 (patch)
tree9c3a640b49654d5f010b0ad2fc614ff85ec7252a /blocks.js
parent8e14ae00f1ec4d60727702df4265bf142856cebc (diff)
parent667aa5a56564d07c05182eeae7bba7567710a844 (diff)
downloadsnap-f8b3ef7c27f09b6638b8d024512e8289b844e651.tar.gz
snap-f8b3ef7c27f09b6638b8d024512e8289b844e651.zip
Merge branch 'location' into mobileapp
Diffstat (limited to 'blocks.js')
-rw-r--r--blocks.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/blocks.js b/blocks.js
index 5f9bb29..735d36b 100644
--- a/blocks.js
+++ b/blocks.js
@@ -844,6 +844,25 @@ SyntaxElementMorph.prototype.labelPart = function (spec) {
);
part.setContents(['date']);
break;
+ case '%locations':
+ part = new InputSlotMorph(
+ null, // text
+ false, // non-numeric
+ {
+ 'all' : ['all'],
+ 'country' : ['country'],
+ 'state' : ['state'],
+ 'state district' : ['state district'],
+ 'suburb' : ['suburb'],
+ 'city' : ['city'],
+ 'road' : ['road'],
+ 'house number' : ['house number'],
+ 'licence': ['licence']
+ },
+ true // read-only
+ );
+ part.setContents(['all']);
+ break;
case '%delim':
part = new InputSlotMorph(
null, // text