more cleanup...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2016-04-14 18:41:19 +03:00
parent bd843e6d1f
commit 04dcf93c0c

View File

@ -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 {