Commit graph

352 commits

Author SHA1 Message Date
Laura Klünder
7e34439882 some minor js improvements 2017-10-30 14:13:09 +01:00
Laura Klünder
1efdad1f58 add location popups 2017-10-30 14:07:44 +01:00
Laura Klünder
e33156dc4a call c3nav.update_map_locations after swap 2017-10-30 11:13:18 +01:00
Laura Klünder
eda4977efc fix markers for location groups 2017-10-30 11:10:50 +01:00
Laura Klünder
c245769ad8 don't always fly to bounds 2017-10-29 22:53:30 +01:00
Laura Klünder
f382ba2e1d add origin and destination icons 2017-10-29 21:48:24 +01:00
Laura Klünder
4b5b65c1b4 remove old css code 2017-10-29 20:21:37 +01:00
Laura Klünder
7c8dc7e85d more autofocus on view transitions 2017-10-29 20:05:13 +01:00
Laura Klünder
e74811122d save views in <main> and add route-result view and route-header 2017-10-29 19:54:44 +01:00
Laura Klünder
284cbb15c2 fix leaflet icon image path 2017-10-29 18:34:39 +01:00
Laura Klünder
28945f1a36 swap origin and destination 2017-10-29 17:03:02 +01:00
Laura Klünder
f29183b68a remove EmptyBounds 2017-10-29 16:31:46 +01:00
Laura Klünder
d05ae2d7da calculate correct padding for flyToBounds 2017-10-29 13:14:02 +01:00
Laura Klünder
0acc1a6413 fix tileLayer bounds (were still y,x) 2017-10-29 12:49:26 +01:00
Laura Klünder
021c5a3c3a show results on the map and fly to bounds 2017-10-29 12:45:26 +01:00
Laura Klünder
31cb2dd046 add markers when a location is selected 2017-10-29 12:00:59 +01:00
Laura Klünder
0cc7617502 replace locations_by_slug with locations_by_id 2017-10-29 12:00:08 +01:00
Laura Klünder
a3be7b2842 flip every y,x to x,y 2017-10-29 11:32:44 +01:00
Laura Klünder
0aadd97eb8 fix view transition in chrome (some weird rendering bug) 2017-10-28 19:30:11 +02:00
Laura Klünder
9bdea3b4b4 click route button 2017-10-28 19:30:04 +02:00
Laura Klünder
4771f8828e init_locationinputs() 2017-10-28 18:57:58 +02:00
Laura Klünder
ea76bfe8e2 init_locationinputs → init_sidebar 2017-10-28 18:56:45 +02:00
Laura Klünder
d32d4315ff fix missing semicolon 2017-10-28 18:56:38 +02:00
Laura Klünder
81c360ba69 blur input or focus next one on click or return key 2017-10-28 18:53:42 +02:00
Laura Klünder
2a158a41ac change view transition speed 2017-10-28 18:46:46 +02:00
Laura Klünder
7d483fc5cc toggle location view 2017-10-28 18:45:20 +02:00
Laura Klünder
c317938bff disable native autocomplete and spellcheck in locationinputs 2017-10-28 18:35:10 +02:00
Laura Klünder
5666592340 set empty class 2017-10-28 18:35:05 +02:00
Laura Klünder
6c034223e5 remove typeahead.js inclusion 2017-10-28 18:27:15 +02:00
Laura Klünder
951359f287 goodbye typeahead.js 2017-10-28 18:20:42 +02:00
Laura Klünder
97030af17f remove old buttons 2017-10-28 18:20:29 +02:00
Laura Klünder
19843a6689 remove autocomplete defaults 2017-10-28 18:20:07 +02:00
Laura Klünder
b6a55a7b66 finish up autocomplete 2017-10-28 18:18:53 +02:00
Laura Klünder
cced25c8ef fix locationinput input line height, so clicking doesnt jump to the start 2017-10-28 17:18:21 +02:00
Laura Klünder
96592b9355 locationinput: blur, escape and clear button 2017-10-28 16:57:13 +02:00
Laura Klünder
49cff1cfb8 add missing semicolon 2017-10-28 16:37:56 +02:00
Laura Klünder
6bb4d8a18c dont forget to set c3nav._last_locationinput_words_key 2017-10-28 16:31:08 +02:00
Laura Klünder
6b369f1b88 locationinput instead of typeahead 2017-10-28 16:29:55 +02:00
Laura Klünder
315c4e6ad8 reformat code 2017-10-28 16:22:46 +02:00
Laura Klünder
75630f33d1 don't show more autocomplete suggestion than fit the screen 2017-10-28 16:20:53 +02:00
Laura Klünder
18aac563f4 always clear autocomplete after new matching 2017-10-28 16:15:55 +02:00
Laura Klünder
80347480be breaking news: JavaScript is not Python 2017-10-28 16:12:57 +02:00
Laura Klünder
482f09afee don't match again if user input does no change anything 2017-10-28 16:12:18 +02:00
Laura Klünder
7edd9086e4 javascript autocomplete results matching 2017-10-28 16:09:02 +02:00
Laura Klünder
1b1e76d3e0 move document.ready() 2017-10-28 14:19:16 +02:00
Laura Klünder
0eb444eb38 call schedule_refresh_tile_access() 2017-10-28 14:19:08 +02:00
Laura Klünder
80497a31a4 reformat c3nav.js and load searchable locations 2017-10-28 14:10:47 +02:00
Laura Klünder
ebca3361d3 update typeahead.js to corejavascript fork as twitter stopped maintaining it 2017-10-27 12:36:15 +02:00
Laura Klünder
8397c4100e add some comments 2017-10-27 12:35:59 +02:00
Laura Klünder
bef30efeb7 tie icon switch to empty instead of selected 2017-10-26 21:16:45 +02:00