Commit Graph

2558 Commits

Author SHA1 Message Date
John Firebaugh fc692d8707 When deleting a vertex, reselect another vertex if possible
Fixes #1457.
2013-05-31 17:36:08 -07:00
John Firebaugh 5156358b07 Minimize number of sidebar rerenders 2013-05-31 16:27:47 -07:00
John Firebaugh 29e6880fc0 Calculate nearest streets only when needed 2013-05-31 16:18:43 -07:00
John Firebaugh 3b34b35d10 Render only the visible inspector pane 2013-05-31 16:18:18 -07:00
John Firebaugh e98b489041 Remove unused 2013-05-31 14:31:23 -07:00
John Firebaugh a51e932800 Do preventDefault behavior on ⌘Z and ⌘⇧Z
This prevents some instances of https://bugs.webkit.org/show_bug.cgi?id=117092,
and generally we don't ever want the default undo
behavior when these handlers are triggered.
2013-05-31 14:31:23 -07:00
John Firebaugh 0724e204e8 Don't preventDefault on mousedown events
This prevents focus/blur events from getting dispatched,
which was the root cause of #1295.

Fixes #1295.
2013-05-31 14:27:37 -07:00
John Firebaugh f02df04102 Ensure all combobox inputs have a carat
Previously, the second combobox input for a given parent
element would wind up without a carat, because the data
bind would match the first carat.

Fixes #1549.
2013-05-30 15:50:40 -07:00
John Firebaugh 814535ad34 Add preventDefault on button clicks (fixes #1551) 2013-05-30 15:45:50 -07:00
John Firebaugh 3981279747 Fix member list redraws
d3 does not store the keys produced by a data bind -- it
recomputes them on the fly. The key function that was used
referred to `entity`, with the intent that rows referring
to the previous entity would wind up in the exit selection.
But since the key is recomputed for the existing bindings,
and at that point `entity` refers to the new entity, that
portion of the key effectively always matched.

While here, fix deletion of incomplete members (don't know
what the geometry is, so can't do geometry-specific annotations).

Fixes #1548.
2013-05-30 11:45:02 -07:00
saman bb a145105a71 starting to style commit sidebar. 2013-05-30 01:52:50 -04:00
saman bb 4e63980834 fix whitespace. 2013-05-30 00:58:27 -04:00
saman bb 60449617a9 big cleanup of UI toggles, removed lots of redundancy,ect. 2013-05-30 00:53:07 -04:00
John Firebaugh 9874e417eb Fix "View on OSM" in sidebar footer
Fixes #1473.
2013-05-29 20:24:37 -07:00
John Firebaugh e83423c7e2 Refactor UndoRedo, fix initial tooltip state
Fixes #1487.
2013-05-29 19:42:54 -07:00
John Firebaugh c2fa4da23c Use "Unknown" if field doesn't define a placeholder
Fixes #1509
2013-05-29 19:21:07 -07:00
John Firebaugh 405fc899a9 Restore background color and close button to save headers 2013-05-29 19:11:49 -07:00
John Firebaugh 3a7c184e69 Move the save dialog to the sidebar 2013-05-29 17:47:33 -07:00
Saman Bemel-Benrud b8b1a358e9 more animation fixes. 2013-05-29 20:30:56 -04:00
John Firebaugh 8c2c5357c7 Fix typo, localize 2013-05-29 16:10:57 -07:00
John Firebaugh 4bdd49b5fc Adjustments to multipolygon preset
* It shouldn't appear as a search result for simple areas.
* Changing to another area preset shouldn't remove the
  type=multipolygon tag.
* It shouldn't be preferred to the Building preset, which
  matches with score 0.5.

Fixes #1546.
2013-05-29 16:00:34 -07:00
Saman Bemel-Benrud b7d2578fb8 adding placeholders for access preset. 2013-05-29 15:54:29 -04:00
Saman Bemel-Benrud 52aa970296 click preset icon to return to preset grid. 2013-05-29 15:40:12 -04:00
John Firebaugh b55e7bb111 Fix one way marker rendering (fixes #1534) 2013-05-29 12:02:47 -07:00
John Firebaugh e959002e03 Don't show preset list on hover (fixes #1535) 2013-05-29 11:12:42 -07:00
John Firebaugh 22342808b5 Add content wrapper (fixes #1532) 2013-05-29 11:00:07 -07:00
John Firebaugh a97e61803c Refine selection behavior when dragging a node
* Preserve the sidebar state (fixes #1401)
* Show vertices of selected way (fixes #1478)
* Reselect exact previous selection when finished
2013-05-29 10:32:11 -07:00
John Firebaugh 8e6dd17cfc Fill in preset list for relations
Fixes #1541
2013-05-29 10:21:45 -07:00
John Firebaugh 40526764bf Test / fix ChangePreset action 2013-05-29 08:44:59 -07:00
Saman Bemel-Benrud 2959a7f749 style fixes. 2013-05-28 23:44:20 -04:00
John Firebaugh c14e2e600e Fix strokes sometimes being clipped as polygons
Fixes #1527.
2013-05-28 20:30:41 -07:00
John Firebaugh fe38a47a3c Fix URL template host rotation
It was sending all tiles at a given zoom to the same host.
2013-05-28 18:46:15 -07:00
John Firebaugh 9fcea83872 Fix forward button in preset list 2013-05-28 17:41:48 -07:00
John Firebaugh 9b6b198b3f Don't modify input in place 2013-05-28 17:41:36 -07:00
John Firebaugh f9f72be9c8 Extract iD.actions.ChangePreset 2013-05-28 17:41:26 -07:00
John Firebaugh 56f8b9e4a9 Fixup after merge 2013-05-28 16:56:49 -07:00
John Firebaugh 1e8052182d Merge pull request #1247 from systemed/create-multipolygon
ability to create multipolygons
2013-05-28 16:56:22 -07:00
Saman Bemel-Benrud e66eeacd12 remove bad transition from additional icons. 2013-05-28 18:18:52 -04:00
John Firebaugh 1069382353 Obvious editor is obvious 2013-05-28 15:14:07 -07:00
John Firebaugh 3405a663de Fix radio field click behavior 2013-05-28 15:10:57 -07:00
Saman Bemel-Benrud 92b63bb323 Merge branch 'sidebar' 2013-05-28 18:00:59 -04:00
Saman Bemel-Benrud c3091a86ca design cleanup. 2013-05-28 18:00:24 -04:00
John Firebaugh 387ff3c7a5 Simplify 2013-05-28 14:52:38 -07:00
John Firebaugh d1643d4b64 Trying to fix tab behavior in last raw tag field 2013-05-28 14:46:25 -07:00
John Firebaugh 7c20bd3722 Ensure combobox suggestion menu is closed on blur
The combobox's blur handler needs to be called prior
to the tag editor's blur handler. The latter can cause
a re-render, which will rebind handlers. Rebound handlers
are not called during the same event dispatch cycle, so
when the combobox blur handler is last, it sometimes
doesn't get called, stranding the menu.
2013-05-28 14:46:25 -07:00
Saman Bemel-Benrud 5600b6271d adding placeholder text and exception for showing placeholder on radio buttons during hover. 2013-05-28 17:01:40 -04:00
Saman Bemel-Benrud e1fad0272e Merge branch 'sidebar' of github.com:systemed/iD into sidebar 2013-05-28 15:59:19 -04:00
Saman Bemel-Benrud 5d61626a37 working on hover styles. 2013-05-28 15:59:08 -04:00
John Firebaugh e913d564d9 Fix field placeholders 2013-05-28 11:29:31 -07:00
John Firebaugh 182849cbe6 Make preset field placeholders translatable 2013-05-28 11:07:36 -07:00