Commit Graph

1738 Commits

Author SHA1 Message Date
John Firebaugh d9630a8820 Only do the delete hack if it's the first key press
This avoids unexpectedly deleting when you spam backspace
to clear a failed search query.
2013-03-05 10:10:28 -08:00
Ansis Brammanis 3a680b027f add tests for iD.presets.Preset 2013-03-05 13:06:21 -05:00
Ansis Brammanis 3fd7217894 form attribute optional for presets 2013-03-05 11:27:15 -05:00
Ansis Brammanis a56f273827 fix leaking global 2013-03-05 10:37:56 -05:00
John Firebaugh 21b59461ee Fix global leak, reuse Delete operation 2013-03-04 17:16:14 -08:00
John Firebaugh 988bfeb767 Support both delete and backspace (fixes #887)
Also show correct key in operation tooltip.
2013-03-04 17:12:44 -08:00
Ansis Brammanis 053f86f82b move preset tag application to presets/preset.js 2013-03-04 19:16:46 -05:00
Ansis Brammanis 1fe3d5a04e Don't include other in recent presets 2013-03-04 18:33:07 -05:00
Ansis Brammanis 73314f3415 show entire line preset icon 2013-03-04 18:19:34 -05:00
Ansis Brammanis 01025ef60f Fix enter to select preset 2013-03-04 16:35:14 -05:00
Ansis Brammanis 082bd5fd42 Fix preset defaults 2013-03-04 16:34:36 -05:00
Ansis Brammanis 01688f6528 Add city address field 2013-03-04 16:12:19 -05:00
Ansis Brammanis c7e4977bcb Fix category drawing 2013-03-04 15:58:17 -05:00
Ansis Brammanis 1a43992bd1 add recent presets to defaults 2013-03-04 15:47:50 -05:00
Tom MacWright 71a4c5a383 Fix jshint errors - plz do not use unnecessary magic 2013-03-04 12:08:54 -05:00
Ansis Brammanis 4a9ce55793 let delete shortcut work on empty preset search 2013-03-04 11:29:03 -05:00
Ansis Brammanis 44079759a6 untie showing grid and showing radial menu 2013-03-04 00:42:02 -05:00
John Firebaugh 60a290282c Clip lines with Cohen-Sutherland algorithm
This yields a 10x paint performance increase at
#map=18.88/38.85208/-76.72632, as measured with
Chrome Canary's "Continuous Page Repainting" mode.

Fixes #885.
2013-03-03 18:25:42 -08:00
Ansis Brammanis f757bc965f flush map after changing connection url 2013-03-03 21:20:30 -05:00
Ansis Brammanis ac5ac1ebd7 Add check ui element 2013-03-01 21:47:51 -05:00
Ansis Brammanis d1d90ab691 misc preset 2013-03-01 18:43:47 -05:00
Ansis Brammanis 900c37a652 fix tests 2013-03-01 17:27:53 -05:00
Ansis Brammanis 7f6f606a7c extract preset fields 2013-03-01 17:08:23 -05:00
Ansis Brammanis eae4aeb3ba presets.js to collection.js 2013-03-01 16:18:12 -05:00
Ansis Brammanis 39f4e36c49 Merge branch 'master' of github.com:systemed/iD 2013-03-01 16:15:59 -05:00
Ansis Brammanis 0c24821c87 re-add preset category support 2013-03-01 16:13:48 -05:00
Ansis Brammanis 9d67e8e516 Start reorganizing presets 2013-03-01 15:48:20 -05:00
John Firebaugh 78f0d36c02 Don't debounce loadTiles inside connection
It doesn't look like this is needed -- loadTiles is
called only from redraws, which are already debounced.
And external debouncing is the right way to do it.
2013-03-01 11:54:45 -08:00
John Firebaugh 5d30e693b4 Cleanup 2013-03-01 11:48:20 -08:00
John Firebaugh 787e76dbd1 Fix snapping after moving (fixes #880) 2013-03-01 10:41:55 -08:00
John Firebaugh b09bc8cfa2 Extract selection reference 2013-03-01 10:30:12 -08:00
John Firebaugh 8b5b13fbc4 Delete commented out code 2013-03-01 10:30:12 -08:00
John Firebaugh 1f28e1441e Camel case identifiers 2013-03-01 10:30:12 -08:00
Ansis Brammanis 8d4562369d "view on osm" not for created entities 2013-03-01 10:31:23 -05:00
John Firebaugh fb3ad31bfd Cleanup 2013-02-28 17:30:38 -08:00
John Firebaugh ac161ddb62 i18n 2013-02-28 17:09:47 -08:00
John Firebaugh f9bf61a6c3 Underscore naming for files 2013-02-28 16:32:23 -08:00
John Firebaugh a8c6bd18d5 Push message into PresetGrid/TagEditor 2013-02-28 16:32:22 -08:00
John Firebaugh d9d322592d Cleanup 2013-02-28 16:32:22 -08:00
Ansis Brammanis 40e133c130 Tagless entities trigger initial 2013-02-28 19:30:48 -05:00
John Firebaugh c02531fe21 Put presetData in context 2013-02-28 16:05:04 -08:00
Ansis Brammanis 65cfb6b69b Add asyncMap 2013-02-28 18:38:35 -05:00
Ansis Brammanis 478696a189 Offsets are now relative to zoom level 2013-02-28 15:57:37 -05:00
Ansis Brammanis 90e1005c4c Only reset if save successful 2013-02-28 15:02:33 -05:00
Ansis Brammanis 0090920d41 maintain center when map resized 2013-02-28 14:35:33 -05:00
Ansis Brammanis eea85681be Fix tests 2013-02-28 14:24:51 -05:00
Ansis Brammanis baa9dc6e5e Render unclosed areas correctly 2013-02-28 14:08:03 -05:00
Ansis Brammanis e0bc3bf7e1 No initial mode after rotating 2013-02-28 13:21:18 -05:00
Ansis Brammanis 4081d1234e set centerzoom before drawing map 2013-02-28 13:12:00 -05:00
Ansis Brammanis d70f123107 Focus restore modal buttons 2013-02-28 10:58:55 -05:00