summaryrefslogtreecommitdiff
path: root/blocks.js
diff options
context:
space:
mode:
authorGubolin <gubolin@fantasymail.de>2014-12-07 11:50:08 +0100
committerGubolin <gubolin@fantasymail.de>2014-12-07 11:50:08 +0100
commit25a62961d65effc2ea311214e715b8c1e3b8ad4e (patch)
tree1e59030fc4e5c9d5c0c3bc6202346ad4333697be /blocks.js
parent80b8581462cb2299f3e776b8052877d47906eeee (diff)
parent667aa5a56564d07c05182eeae7bba7567710a844 (diff)
downloadsnap-25a62961d65effc2ea311214e715b8c1e3b8ad4e.tar.gz
snap-25a62961d65effc2ea311214e715b8c1e3b8ad4e.zip
Merge remote-tracking branch 'origin/location' into development
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 e6bceeb..4f7f0eb 100644
--- a/blocks.js
+++ b/blocks.js
@@ -866,6 +866,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