Modify

Opened 11 years ago

Last modified 10 years ago

#11228 assigned enhancement

click on ticket raises a new browser window but we want a new tab page

Reported by: anonymous Owned by: Chris Nelson
Priority: normal Component: TracJsGanttPlugin
Severity: major Keywords:
Cc: Trac Release:

Description

Is there an option to let the tickets appear as new tab in the browser? Raising a new browser window is unexpected behavior and confuses nearly all members of my team.

Attachments (0)

Change History (9)

comment:1 Changed 11 years ago by Chris Nelson

Sorry, no; no such option yet.

comment:2 Changed 11 years ago by Chris Nelson

Status: newassigned

Working on this.

comment:3 Changed 11 years ago by Chris Nelson

I have this sort of working.

I think I need a Trac-jsGantt configuration option to choose between:

  • Existing behavior
    • Any click opens the ticket in a new window
    • Click another, replace the window opened for the first
  • Trac ticket link behavior (which, I think, is just browser behavior)
    • Click replaces
    • Shift click opens in new window
    • Middle click (Chrome-derived browsers, only) opens in another tab

I think I'd default to the new behavior.

I don't see any way to have clicking open a new tab in a browser-independent way.

comment:4 Changed 11 years ago by Chris Nelson

In 13367:

Add link style option to jsGantt. Refs #11228.

By default, the old jsGantt behavior of opening a new window persists.

Can pass "standard" to get standard browser behavior for ticket links:

  • Click replaces the current window
  • Shift-click opens the ticket in a new window
  • (In Chrome) Middle Click opens in a new tab

comment:5 Changed 11 years ago by Chris Nelson

In 13368:

Use jsgantt option to control link style. Refs #11228.

comment:6 Changed 11 years ago by falkb

Yeah, works great with FF. What is the reason why you don't support middle click with FF?

comment:7 in reply to:  6 Changed 11 years ago by Chris Nelson

Replying to falkb:

Yeah, works great with FF. What is the reason why you don't support middle click with FF?

I don't seem to be able to trap that event. Chrome seems to do some magic under the hood. I actually *test* *for* middle button but it doesn't do what I expect.

comment:9 Changed 10 years ago by Chris Nelson

This should be doing the right thing in the current version. Please let me know.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as assigned The owner will remain Chris Nelson.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.