
rolfm at denison
Nov 20, 2008, 10:15 AM
Post #3 of 7
(1513 views)
Permalink
|
On Nov 20, 2008, at 1:04 PM, David E. Wheeler wrote: > On Nov 20, 2008, at 8:53 AM, Matt Rolf wrote: > >> We're working on putting labels on the desk/workflow icons in the >> devel release, and we are curious how the checkout button works. >> There's an input, but no javascript or form submission that we can >> see. How does it make its magic happen? > > Hrm. Good question. This is the HTML for that element: > > <input type="image" name="desk_asset|checkout_cb" > id="desk_asset_checkout_cb" src="/media/images/checkout.gif" > title="Check out" value="story_1024" /> > > Somehow that gets sent to Desk.request(), I think, but I've no idea > how. None of the loading code in lib.js appears to do it…Marshall, > do remember how this works? It looks like it was added in 1.11.x. In the work we've done, we've found that the inputs aren't needed. We've taken them out in our current iteration and used anchors. The inputs can be put back in if need be. But this button doesn't have any javascript or anything else. When we make it an anchor we get 2 ids, and no values, and it does nothing. It's interesting. -matt
|