1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-26 07:20:57 +01:00
phorge-phorge/src/view
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
..
__tests__ Delete license headers from files 2012-11-05 11:16:51 -08:00
control Pholio - make the form maintain client side edits between file uploads 2013-07-18 15:04:08 -07:00
form Add JS support for replacing Pholio mocks 1:1 2013-07-19 14:07:22 -07:00
layout Make PhabricatorActionListView logged-out user savvy 2013-07-12 11:39:47 -07:00
page Fix several issues with "Logout" 2013-06-18 11:05:28 -07:00
phui Fix a fatal in the feed handler, grotesquely 2013-07-18 20:56:33 -07:00
widget Hovercard tweaks 2013-04-06 21:16:55 -07:00
AphrontDialogView.php Improve errors associated with adding new login providers 2013-06-20 14:13:53 -07:00
AphrontJavelinView.php Partial fix for Javelin View Example 2013-07-16 13:31:43 -07:00
AphrontNullView.php Restore merge of phutil_tag. 2013-02-13 14:51:18 -08:00
AphrontTagView.php Remove all the container node stuff from AphrontTagView 2013-06-05 16:21:55 -07:00
AphrontView.php Remove all calls to renderSingleView() and deprecate it 2013-03-09 13:52:41 -08:00
viewutils.php pht() for view and form elements 2013-03-01 15:37:33 -08:00