1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-22 21:40:55 +01:00
phorge-phorge/webroot/rsrc/js/application
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
..
aphlict Use JsShrink if jsxmin is not available 2013-05-18 17:04:22 -07:00
config Allow custom fields to be reordered and disabled from Config 2013-07-09 08:27:19 -07:00
conpherence Conpherence - fix some ajax bugs 2013-06-11 15:07:53 -10:00
countdown Use JsShrink if jsxmin is not available 2013-05-18 17:04:22 -07:00
differential Show add reviewer typehead when user selects resign as a reviewer. 2013-07-10 11:05:53 -07:00
diffusion Use JsShrink if jsxmin is not available 2013-05-18 17:04:22 -07:00
doorkeeper Add remarkup support for Asana URIs 2013-06-24 15:55:08 -07:00
herald Update form styles, implement in many places 2013-05-07 14:07:06 -07:00
legalpad Legalpad - add a preview to document create / edit 2013-07-08 17:05:33 -07:00
maniphest Simplify drag-and-drop list implementations 2013-06-05 17:36:33 -07:00
owners Allow excluding paths from package 2012-12-07 16:33:16 -08:00
phame Use JsShrink if jsxmin is not available 2013-05-18 17:04:22 -07:00
pholio Add JS support for replacing Pholio mocks 1:1 2013-07-19 14:07:22 -07:00
phortune Allow PhortuneTestProvider to add payment methods 2013-04-25 09:50:08 -07:00
phriction Use JsShrink if jsxmin is not available 2013-05-18 17:04:22 -07:00
ponder Fixed voting comments bug on Ponder 2013-07-13 15:58:37 -07:00
projects Allow commits to be associated with projects and associated goodies 2012-08-08 10:03:41 -07:00
releeph Use JsShrink if jsxmin is not available 2013-05-18 17:04:22 -07:00
repository Removed getElementsByClassName in repositor-crossreference.js 2013-05-12 06:54:15 -07:00
search Simplify drag-and-drop list implementations 2013-06-05 17:36:33 -07:00
slowvote Use JsShrink if jsxmin is not available 2013-05-18 17:04:22 -07:00
transactions Make ApplicationTransactions preview -> submit flow less janky 2013-06-24 15:41:59 -07:00
uiexample Fix more JavelinView example stuff 2013-07-16 13:46:49 -07:00