On Wednesday, April 22, 2015 at 11:06:59 PM UTC-7, Mo wrote:
>
>
>
> 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.
>

It's highly unlikely that we'll open new links by default in a new tab, or 
even add a preference for that. That's what keyboard shortcuts are for 
(CTRL/CMD + click).

It's possible we could add a warning dialog when leaving a wiki page with 
unsaved edits. I would be surprised if this has not already been discussed 
somewhere in the Trac development issue tracker, and if that's the case I'd 
want to see what discussion took place before implementing the change. Have 
you searched for any existing tickets discussing the issue?

- Ryan 

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