webgui/lib/WebGUI/AssetHelper
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
..
Image Make version tags mandatory again. 2011-10-25 19:44:58 -07:00
Product Repeat ampli's fix (described below) for other occurances on the site. 2011-06-29 19:13:18 -04:00
ChangeUrl.pm Remove Class::C3 from the asset helpers, since they don't use it. 2012-01-01 11:47:58 -08:00
Copy.pm Need at least one call to the sub that updates the Fork status. 2013-09-25 15:00:43 -05:00
CopyBranch.pm Making the "Copy Branch" menu option work was a treat. 2013-09-25 15:00:45 -05:00
CreateShortcut.pm Remove Class::C3 from the asset helpers, since they don't use it. 2012-01-01 11:47:58 -08:00
Cut.pm the 'cut' drop down (AssetHelper) operation basically worked, but the screen wasn't redrawn after the change, and the JSON returned during Fork polling in WebGUI::AssetHelper::Cut didn't match what the YAHOO.WebGUI.Fork.poll callback in WebGUI.Admin.prototype.openForkDialog was expecting so status communication had to be wired up. wG::ProgressTree exposes 'flat' now too for the sake of computing a progress bar. looking at only the roots nodes is ineffective; in this case, the number of root nodes would only ever be 1 though the number of child nodes to be processed could be much higher. WebGUI.Admin.prototype.openForkDialog's callback to YAHOO.WebGUI.Fork.poll handles a status JSON message (JSON inside of JSON, ugh) of "reload" and there's an admin.reload() method now. that's also callable from WebGUI.Admin.prototype.processPlugin and was done in the style of its handlers. 2013-09-24 12:28:51 -05:00
Delete.pm Fix label, remove debug. 2013-09-25 15:00:44 -05:00
Duplicate.pm Remove Class::C3 from the asset helpers, since they don't use it. 2012-01-01 11:47:58 -08:00
EditBranch.pm Remove Class::C3 from the asset helpers, since they don't use it. 2012-01-01 11:47:58 -08:00
ExportHtml.pm Remove Class::C3 from the asset helpers, since they don't use it. 2012-01-01 11:47:58 -08:00
Lock.pm Remove Class::C3 from the asset helpers, since they don't use it. 2012-01-01 11:47:58 -08:00
UploadFiles.pm Remove Class::C3 from the asset helpers, since they don't use it. 2012-01-01 11:47:58 -08:00