Steffen Hoffmann wrote:
> Chris Nelson wrote:
>> When you click on a task in Trac-jsGantt, a little window pops up
>> displaying the ticket.  ... what I'd like is
>> to set the link to "/trac/ticket/1234?format=mini" or something and
>> have an alternate ticket display format show up in a mid-sized popup
>> window.  ...
> 
> You may want to take a look at the CcSelectorPlugin by Vladislav
> Naumov. 
> 
> In short: To do the trick like he did you'd popup a new window with
> some JS code and load content via a dedicated URL that triggers a
> template provider inside your plugin.
> 
> This heavily relies on JS allowed for the users browser instance, but
> I've found no "native"/generic Trac mechanism for popup windows. There
> is an issue with popup window put into background by (accidentally)
> activating another window, since there is no (cross-browser) thing
> like "always-on-top", but I can live with it's current state for now.

My problem is not how to popup the window -- jsGantt already uses JS to
do that -- but how to control the format of what's in the new window.
My thought was that if I could get the /ticket provider to support an
alternate, compressed format, the URL I use in the JS could invoke the
ticket viewer with that alternate format specified.  I can have
/milestone/MilestonName and /milestone/MilestonName?action=edit.  What
I'm looking for is /ticket/1234 and /ticket/1234?format=mini but I don't
know how to start doing that.

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Development" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/trac-dev?hl=en.

Reply via email to