Commit graph

11 commits

Author SHA1 Message Date
Scott Walters
b962b03848 Making the "Copy Branch" menu option work was a treat.
requestHelper() invokes an asset helper via AJAX.  processPlugin() handles the JSON responses, which in this case is to open a dialog box and show
a given URL in it (openDialog key in the JSON hash).  that pop-up is open and the page loaded, and that displays a form.  that form submits
to an asset helper (uh oh) which also returns JSON (actually, it was failing to do even that and was stringifying a hash).  even if it returned
JSON, it would just get shown to the user in the pop-up.  so the form that gets loaded into the pop-up has to, onsubmit, after it has config
details from the user, run JS to make the AJAX request to the asset helper to start the actual copy operation, call into the admin's JS to
pop up the dialog that polls on a forked process, and then call into the admin to close itself.  this is a nasty hack that daisy chains
together two possible replies to processPlugin(), one after the other.
2013-09-25 15:00:45 -05:00
Colin Kuskie
26ae70190f Remove extra call to old tree updating code. 2013-09-25 15:00:44 -05:00
Colin Kuskie
a503e72cfc Update CopyBranch for newest fork code. 2013-09-25 15:00:44 -05:00
Colin Kuskie
6a6f839e84 Remove Class::C3 from the asset helpers, since they don't use it. 2012-01-01 11:47:58 -08:00
Colin Kuskie
b323f74121 Update copyright notice 2011-12-28 11:30:38 -08:00
Colin Kuskie
4bfabb9469 Make version tags mandatory again. 2011-10-25 19:44:58 -07:00
Doug Bell
698f40a6dd add "asset" property to AssetHelpers.
Simplifies the API and allows us to have getForm and getUrl to make
asset helpers easier to build.
2011-03-25 14:49:44 -05:00
Doug Bell
b9e879b7aa change AssetHelpers to have short IDs instead of class names
This will make better code reuse: The Asset Manager will instead
call the AssetHelper with the id of "cut" or "copy" to get the
correct operation.
2011-02-25 15:45:42 -06:00
Colin Kuskie
8186eba909 form param "with" should be all lower case. 2010-11-11 15:24:18 -08:00
Paul Driver
a4edea1e3c Better integration of Fork into AssetHelpers, fork startup 2010-11-08 07:55:42 -06:00
Doug Bell
f94ea5a606 add CopyBranch to handle copy children/descendants 2010-08-04 12:12:45 -05:00