Modify

Opened 17 months ago

Last modified 9 months ago

#11228 assigned enhancement

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

Reported by: anonymous Owned by: ChrisNelson
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 17 months ago by ChrisNelson

Sorry, no; no such option yet.

comment:2 Changed 16 months ago by ChrisNelson

  • Status changed from new to assigned

Working on this.

comment:3 Changed 16 months ago by ChrisNelson

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 16 months ago by ChrisNelson

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 16 months ago by ChrisNelson

In 13368:

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

comment:6 follow-up: Changed 16 months 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 16 months ago by ChrisNelson

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 9 months ago by ChrisNelson

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

Add Comment

Modify Ticket

Action
as assigned The owner will remain ChrisNelson.
Author


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

 
Note: See TracTickets for help on using tickets.