Jump to content
  • Sign Up

[Forum] [QoL] Remove click listener in notifications dropdown


Recommended Posts

I often try to Ctrl+Click the notification links in the notifications dropdown to open them in a new tab.Because of an event listener on the parent, doing so open a new tab and trigger a navigation in the current tab.I tested to manually add a listener to stop the event propagation and the links worked perfectly fine by themselves on click.I don't know why it's there, but making it so a click with the Ctrl modifier is ignored or removing it entirely would be more convenient.

The culprit code is$(document).on('click','.PopList .Item[rel]',function(){window.location.href=$(this).attr('rel');});

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...