derekovecs: middle button in paradigmatic maps open KorAP search
diff --git a/js/som.js b/js/som.js
index e496d36..1931f4f 100644
--- a/js/som.js
+++ b/js/som.js
@@ -211,6 +211,16 @@
})
.text(function(d) { return d; });
+ $('g.u a, g.tsnet a').on('mousedown', function(e) {
+ if (e.which === 2) {
+ e.preventDefault();
+ e.stopPropagation();
+ console.log("middle button clicked " + this.childNodes["0"].textContent);
+ queryKorAPCII(this.childNodes["0"].textContent);
+ return false;
+ }
+ });
+
var som_interval = setInterval(somStep, 0);
var it=0;