don't highlight replies on middle click'

This commit is contained in:
Savetheinternet 2011-06-23 23:08:34 +10:00
parent 833af50181
commit cab73c934a
2 changed files with 10 additions and 0 deletions

View File

@ -9,6 +9,11 @@ function get_cookie(cookie_name)
function highlightReply(id)
{
if(window.event !== undefined && event.which == 2) {
// don't highlight on middle click
return true;
}
var divs = document.getElementsByTagName('div');
for (var i = 0; i < divs.length; i++)
{

View File

@ -9,6 +9,11 @@ function get_cookie(cookie_name)
function highlightReply(id)
{
if(window.event !== undefined && event.which == 2) {
// don't highlight on middle click
return true;
}
var divs = document.getElementsByTagName('div');
for (var i = 0; i < divs.length; i++)
{