summaryrefslogtreecommitdiff
path: root/main.js
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@tinyboard.org>2011-06-23 22:54:27 +1000
committerSavetheinternet <savetheinternet@tinyboard.org>2011-06-23 22:54:27 +1000
commit833af50181aa9c8574899b20a216400e7b9d12d1 (patch)
treedaf7787e1a483aa9c33b9f1cbcd554e7cbb1cd85 /main.js
parent6ca99d189dd64ec83385dc6361f5b62f768162bf (diff)
middle click on images opens them normally
Diffstat (limited to 'main.js')
-rwxr-xr-x[-rw-r--r--]main.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/main.js b/main.js
index 4f69a205..c0ee283b 100644..100755
--- a/main.js
+++ b/main.js
@@ -136,7 +136,10 @@ function init()
link = document.getElementsByTagName('a');
for ( i in link ) {
if(typeof link[i] == "object" && link[i].childNodes[0].src) {
- link[i].onclick = function() {
+ link[i].onclick = function(e) {
+ if(e.which == 2) {
+ return true;
+ }
if(!this.tag) {
this.tag = this.childNodes[0].src;
this.childNodes[0].src = this.href;
@@ -165,5 +168,5 @@ var RecaptchaOptions = {
theme : 'clean'
};
-
window.onload = init;
+