1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-23 23:32:40 +01:00
phorge-phorge/src/view/form
epriestley 87871b3588 Add JS support for replacing Pholio mocks 1:1
Summary:
Ref T3572. Needs some CSS tweaks, but this lets you drag an image on top of another image to replace it. There's no server-side or transaction support (and I'm not planning to build that), I just wanted to clear the way on the JS side.

You'll get an additional array posted called `replaces`. Keys are old file PHIDs; values are new file PHIDs.

Note that a key may not exist yet (if a user adds an image, and then also replaces that same image). In this case, the server should just treat it as an add.

Test Plan: Dragged images on top of other images.

Reviewers: btrahan, chad

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T3572

Differential Revision: https://secure.phabricator.com/D6499
2013-07-19 14:07:22 -07:00
..
control Add JS support for replacing Pholio mocks 1:1 2013-07-19 14:07:22 -07:00
AphrontErrorView.php Restore merge of phutil_tag. 2013-02-13 14:51:18 -08:00
AphrontFormInsetView.php Restore merge of phutil_tag. 2013-02-13 14:51:18 -08:00
AphrontFormLayoutView.php Add fullWidth option to AphrontFormView 2013-05-14 12:21:00 -07:00
AphrontFormView.php Add instructions about READMEs to new Diffusion basic editor 2013-05-24 12:38:27 -07:00
PHUIFormPageView.php Build an early multi-step repository create form 2013-07-14 07:37:17 -07:00
PHUIPagedFormView.php Build an early multi-step repository create form 2013-07-14 07:37:17 -07:00