Commit graph

1713 commits

Author SHA1 Message Date
Laura Klünder
cce476c37a using id() as a cache key was a very bad idea 2017-10-29 09:47:53 +01:00
Laura Klünder
bfe1491efc add border to map renderings 2017-10-29 09:32:15 +01:00
Laura Klünder
737818c5e0 fix X-Requested-With Vary 2017-10-28 21:49:30 +02:00
Laura Klünder
8c52f9aed1 add language to etag 2017-10-28 21:47:53 +02:00
Laura Klünder
5fe03c4c8e add simple_geometry to location api 2017-10-28 21:36:52 +02:00
Laura Klünder
f83b77ed8b improve location api caching again and improve subtitles/descriptions 2017-10-28 20:50:02 +02:00
Laura Klünder
8beb6f9e8b better subtitles for location groups and more caching in query set 2017-10-28 20:30:27 +02:00
Laura Klünder
966b554169 locationgroups always on top 2017-10-28 20:06:44 +02:00
Laura Klünder
be97ed6a47 add LocationGroup.subtitle 2017-10-28 19:49:28 +02: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
b5337af65e api should not break if it sends a 304 2017-10-28 19:04:34 +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
a433a204e2 remove etag from API HTML view (because it shows the username) 2017-10-28 14:17:28 +02:00
Laura Klünder
80497a31a4 reformat c3nav.js and load searchable locations 2017-10-28 14:10:47 +02:00
Laura Klünder
c2bedebd28 replace ?search with ?searchable 2017-10-28 14:09:59 +02:00
Laura Klünder
c35d833640 order locations by relevance 2017-10-28 13:31:12 +02:00
Laura Klünder
0cfae778f0 Location API: can_seach OR can_describe 2017-10-28 13:18:28 +02:00
Laura Klünder
bdbbaa71a1 fix typo (max instead of min) in MapHistory.add_new() 2017-10-28 13:14:32 +02:00
Laura Klünder
1db9db542f fix register_changed_geometries on LocationGroup and LocationGroupCategory 2017-10-28 13:04:46 +02:00
Laura Klünder
4f0dce05a1 location api: only prefetch location groups that are visible to the user 2017-10-28 12:44:22 +02:00
Laura Klünder
1536fb0e10 besser queryset mode values in location api 2017-10-28 12:38:29 +02:00
Laura Klünder
7632ce39ae add simple_api_cache to editor API 2017-10-27 17:33:50 +02:00
Laura Klünder
9dafd3f777 add X-Requested-With Vary header to sidebar views 2017-10-27 17:23:58 +02:00
Laura Klünder
6e9d2424f8 don't remove if-none-match header on editor ajax 2017-10-27 17:21:04 +02:00