Login

russian armor

javascript link in stream names

24 Jul 2014, 13:51 PM
#1
avatar of tuvok
Benefactor 115

Posts: 786

just a little thing that's been bugging me since forever, you've got this js redirect on the livestreams links that prevents me from ctrl+clicking to open it in a new tab

Code
function trackStream() {
$('.performView').on('click', function(e) {
e.preventDefault();
var $this = $(this),
url = $this.attr('href');
switch (e.which) {
case 2:
COH2ORG.Lib.request('/livestream/performView/chan_id/' + parseInt($(this).data('id'), 10));
window.open(url);
break;
default:
if ($this.attr('target') === '_blank') {
COH2ORG.Lib.request('/livestream/performView/chan_id/' + parseInt($(this).data('id'), 10));
window.open(url);
} else {
COH2ORG.Lib.request('/livestream/performView/chan_id/' + parseInt($(this).data('id'), 10), function() {
window.location.href = url;
}, function() {
window.location.href = url;
});
}
}
});
}

it's a normal <a tag so I don't see the need for all of this since it's not doing anything special
25 Jul 2014, 23:56 PM
#2
avatar of hicksi
Admin Black Badge

Posts: 983 | Subs: 3

use your middle mouse button, that works great :)
i hope that is a solution for you :)
Seb
26 Jul 2014, 21:22 PM
#3
avatar of Seb
Admin Black Badge

Posts: 3709 | Subs: 2

I don't know if you remember but I also hate that ctrl + click doesn't work for that.

For a start, middle button is not a solution on a laptop. :(
26 Jul 2014, 21:25 PM
#4
avatar of Janne252
Admin Black Badge
Patrion 15

Posts: 3421 | Subs: 11

Middle mouse button does not work me, at all. The javascript still manages to force the Stream to open in the same window.
27 Jul 2014, 00:16 AM
#5
avatar of hicksi
Admin Black Badge

Posts: 983 | Subs: 3

okay it's not really hard to fix :)
i wasn't aware that the middle mouse button doesn't work in any browser and the laptop argument is pretty good point
27 Jul 2014, 18:06 PM
#6
avatar of hicksi
Admin Black Badge

Posts: 983 | Subs: 3

okay ctrl click should work now. in order to make it work properly you need to allow coh2org to open a new popup window. the dialog should be opened on the first ctrl click
28 Jul 2014, 09:23 AM
#7
avatar of Marcus2389
Developer Relic Badge
Donator 11

Posts: 4559 | Subs: 2

I confirm it works.
1 user is browsing this thread: 1 guest

SHOUT IT OUT!

No ProfanityNumber of ShoutsRefresh Shout Box
Willy Pete: @Rosbone Ahh I missed that memo. I still think its a bad decision though. Adds frustration for players and isnt gonna make them that much money
Yesterday, 15:46 PM
Rosbone: It is also good they left it free until after the free to play weekend. Points for that.
Yesterday, 09:34 AM
Rosbone: But I agree, the cost to get a full decent Coh game pushing $115 US is not the best idea. Especially when it needs so much more work for casuals.
Yesterday, 09:32 AM
Rosbone: To be fair, it was a thank you to early fans right? They said it was not free for long and it would become a pay DLC at some point.
Yesterday, 09:30 AM
Willy Pete: Re-releasing free DLC so they can charge new players money for it. Brilliant marketing strategy :clap:
Yesterday, 04:31 AM
Soheil: Coh2 still broken server ?
Last Tuesday, 18:27 PM
Rosbone: Congrats to Relic. Looks like Coh3 has finally usurped Coh2 s the popular Coh. You smell terrific. :snfQuinn:.
Last Monday, 02:46 AM
Nickbn: and again someone else replies. I mean come on guys. Give @adamírcz a chance
Last Saturday, 14:00 PM
Willy Pete: @Nickbn you didn't ask a question, and this is a chat box...
20 Mar 2025, 13:11 PM
Nickbn: @Rosbone it's incredibly rude to speak on someone elses behalf, especially when a question is directly adressed to them. I understand your passion for the subject at hand but I want to hear from him.
20 Mar 2025, 10:16 AM
Rosbone: @Nickbn No, I am just saying people should not be using any Relic owned forum since they have proven they ban anyone who says true things about Coh3.
18 Mar 2025, 19:01 PM
Nickbn: @Rosbone do you speak on his behalf? I didn't know. In that case keep us updated please.
18 Mar 2025, 16:47 PM
Rosbone: #RelicModdedEchoChamber
16 Mar 2025, 17:54 PM
Rosbone: @Nickbn True except, the only people on the Relic Discord/Reddit/Steam are brain washed monkey zealots. They wont even understand what @adamírcz is talking about. Anyone else is banned.
16 Mar 2025, 17:54 PM
Nickbn: @adamírcz might be a better idea to voice this to relic directly than to voice it here, in a shoutbox of a nearly deade fansite #justsaying...
16 Mar 2025, 16:36 PM
webdesign-muenchen-w: @Rosbone it is sick
14 Mar 2025, 22:09 PM
aerafield: @adamírcz aren't the first two disconnects free every day?
14 Mar 2025, 19:26 PM
Rosbone: It is so unlike Relic to punish its fans and community.
14 Mar 2025, 12:07 PM
adamírcz: So, I just got a leaver penalty without even getting onto the loading screen because of the game disconnecting, bravo Relic
14 Mar 2025, 10:45 AM
Rosbone: It is an indicator of the very short sighted capitalist view that plagues any company where leadership does not understand the product.
13 Mar 2025, 20:00 PM

Ladders Top 10

  • #
    Steam Alias
    W
    L
    %
    Streak
Data provided by Relic Relic Entertainment

Replay highlight

VS
  • U.S. Forces flag cblanco ★
  • The British Forces flag 보드카 중대
  • Oberkommando West flag VonManteuffel
  • Ostheer flag Heartless Jäger
uploaded by XXxxHeartlessxxXX

Board Info

344 users are online: 2 members and 342 guests
jfrankline378, Rocket
1 post in the last 24h
10 posts in the last week
74 posts in the last month
Registered members: 53040
Welcome our newest member, jfrankline378
Most online: 2043 users on 29 Oct 2023, 01:04 AM