Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Before the api change (like cache systeme etc...) you can click like on mouse scroller to open page on new tab
Comment | File | Size | Author |
---|---|---|---|
#12 | coffee-new-tab-2010936-12.patch | 1.94 KB | Cogax |
#10 | coffee-new-tab-2010936-10.patch | 1.82 KB | Cogax |
Comments
Comment #1
michaelmol CreditAttribution: michaelmol commentedSince I don't have a third mouse button, it is very hard to test it myself.
Can you please give me some more details, about what browser / os you are using?
Comment #2
Musa.thomasusing chrome Version 32.0.1700.14 beta-m Aura Windows 7
Comment #3
michaelmol CreditAttribution: michaelmol commentedComment #4
Cogax CreditAttribution: Cogax commentedSo i use also Chrome and it still not works. I made a little change in the Javascript, but i don't have the time to look if thats the right way to fix it. I attached the patch.
Edit: It's the wrong patch attached, sorry. See right bellow
Comment #5
Cogax CreditAttribution: Cogax commentedComment #6
Cogax CreditAttribution: Cogax commentedComment #7
michaelmol CreditAttribution: michaelmol commentedAdded href in the result window, should now be clickable with the third mouse button.
Comment #10
Cogax CreditAttribution: Cogax commentedWell, the solution wasn't good. The link was wrong because the link doesn't respect basePath.
I made a new Patch which removes the previous comitted changes and goes another way. I catched the middle mouse click event as well as the ctrlKey event to decide if it should open a new tab.
Comment #11
michaelmol CreditAttribution: michaelmol commentedLooks good, can update the patch and add a comment that event.which ==2 is the 'third mouse button'.
Comment #12
Cogax CreditAttribution: Cogax commentedAdded comments.