From 04dcf93c0cb7afe6668223f934111aa5792536be Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Thu, 14 Apr 2016 18:41:19 +0300 Subject: [PATCH] more cleanup... Signed-off-by: Alex A. Naanou --- ui (gen4)/features/ui-status.js | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/ui (gen4)/features/ui-status.js b/ui (gen4)/features/ui-status.js index fc9276a8..f8e97927 100755 --- a/ui (gen4)/features/ui-status.js +++ b/ui (gen4)/features/ui-status.js @@ -147,11 +147,7 @@ var StatusBarActions = actions.Actions({ item.hasClass('global') ? 'global' : undefined) }) .click(function(){ - // select the text... - window.getSelection().removeAllRanges() - var range = document.createRange() - range.selectNodeContents(this) - window.getSelection().addRange(range) + $(this).selectText() }) .blur(function(){ that.updateStatusBar() @@ -214,10 +210,7 @@ var StatusBarActions = actions.Actions({ // select the text... // XXX should this also copy??? .click(function(){ - window.getSelection().removeAllRanges() - var range = document.createRange() - range.selectNodeContents(this) - window.getSelection().addRange(range) + $(this).selectText() })) } else {