Am Mittwoch, 22. April 2015 21:24:31 UTC+2 schrieb RjOllos:
>
>
> In #11127 (1) for Trac 1.0.2 we added the trac-target-new class. The 
> preferences link on ticket and wiki pages open in a new window in Trac 
> 1.0.2 and later. When a link has the trac-target-new class it will open a 
> in a new window. You could write a plugin to utilize the class.
>
> Try this in the browser console:
> jQuery('a').addClass('trac-target-new');
> jQuery(".trac-target-new").attr("target", "_blank");
>
> The later statement is only needed if the class is added after the page 
> finishes loading. You probably want to be more selective in the links that 
> are opened on the new page.
>
> (1) http://trac.edgewall.org/ticket/11127
>

Could this be implemented for the WikiFormatting by default? However I 
would prefer to add a warning dialog when leaving any page containing 
unsaved data such as tickets, wikis etc.

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to