From 667aa5a56564d07c05182eeae7bba7567710a844 Mon Sep 17 00:00:00 2001 From: Gubolin Date: Mon, 18 Aug 2014 14:28:52 +0200 Subject: add geolocation block --- blocks.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'blocks.js') 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 -- cgit v1.3.1