From 4e506ad290a8e13823f81c29a7fbcd19f4996f05 Mon Sep 17 00:00:00 2001 From: Robert Best Date: Wed, 28 Sep 2016 15:18:44 -0400 Subject: [PATCH] Update JIT.js --- frontend/src/Metamaps/JIT.js | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/Metamaps/JIT.js b/frontend/src/Metamaps/JIT.js index 54ec74b1..519bffd4 100644 --- a/frontend/src/Metamaps/JIT.js +++ b/frontend/src/Metamaps/JIT.js @@ -888,6 +888,7 @@ const JIT = { var myY = e.clientY - 30 $('#new_topic').css('left', myX + 'px') $('#new_topic').css('top', myY + 'px') + $('#new_topic').attr('oncontextmenu','return false') //prevents the mouse up event from opening the default context menu on this element Create.newTopic.x = eventInfo.getPos().x Create.newTopic.y = eventInfo.getPos().y Visualize.mGraph.plot()