-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Chris Nelson wrote:
> When you click on a task in Trac-jsGantt, a little window pops up
> displaying the ticket.  I emphasize "little."  It's 200x200 or
> 400x400 depending on some options I don't recall specifically right
> now.  Neither is big enough for any kind of meaningful display of the
> current ticket form.  I can make it a bit bigger but 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.  That format would omit at least the comment history,
> possibly attachments, and show the header (current values), Action
> box, and maybe a new comment area using a style with less white
> space.  There might be a button to convert to full format.  This
> could be displayed as a popup over the Gantt and would no doubt find
> other uses.  But I'm a Trac development newbie and I don't even know
> how to start implementing such a thing.  Can I get a nudge in the
> right direction?

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.

Yours

Steffen Hoffmann
(hasienda)

[1] http://trac-hacks.org/wiki/CcSelectorPlugin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAk0WYhwACgkQ31DJeiZFuHce3gCg14APd5Dj9IKU7yJ4K8kfYAtg
FOoAn37e4UgMzmQiycFXPTTTrEH22ur6
=NnYO
-----END PGP SIGNATURE-----

-- 
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