From 83c1ca111fad2b7340ffab8be9e53c8bc708427b Mon Sep 17 00:00:00 2001 From: rolux Date: Wed, 1 Oct 2014 15:12:23 +0000 Subject: [PATCH] info view: after doubleclick, remove text selection --- static/js/infoView.padma.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/static/js/infoView.padma.js b/static/js/infoView.padma.js index 19aba5c2..ee395399 100644 --- a/static/js/infoView.padma.js +++ b/static/js/infoView.padma.js @@ -431,6 +431,13 @@ pandora.ui.infoView = function(data) { } }, key == 'groups' ? { doubleclick: function() { + setTimeout(function() { + if (window.getSelection) { + window.getSelection().removeAllRanges(); + } else if (document.selection) { + document.selection.empty(); + } + }); pandora.$ui.groupsDialog = pandora.ui.groupsDialog({ id: data.id, name: data.title,