From f37f6b2d37dbd305734bd3a1c4356d00933cd694 Mon Sep 17 00:00:00 2001 From: Waseem Daher Date: Wed, 13 Feb 2013 15:50:06 -0500 Subject: [PATCH] Don't show popover on right-click. I experimented briefly with window.getSelection to try to determine if any text was highlighted (and then we could've done something like "Don't popover if text is highlighted"), but I couldn't quickly get it to work in a robust way, so for now I am removing the feature. (imported from commit 76048b8fd070675b480a2d29e2c8d7d6018633ec) --- zephyr/static/js/ui.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/zephyr/static/js/ui.js b/zephyr/static/js/ui.js index a0e78725e0..e00bbabfa8 100644 --- a/zephyr/static/js/ui.js +++ b/zephyr/static/js/ui.js @@ -816,16 +816,6 @@ $(function () { show_actions_popover(this, rows.id(row)); }); - $("#main_div").on("contextmenu", ".message_row, .recipient_row", function (e) { - // Let the browser handle right-click on links in messages; - // otherwise we take over - if ($(e.target).is('a')) - return; - e.preventDefault(); - - show_actions_popover(this, rows.id($(this))); - }); - $("#home").on("click", ".narrows_by_recipient", function (e) { var row = $(this).closest(".recipient_row"); narrow.by_recipient(rows.id(row));