mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 10:20:08 +00:00
more cleanup...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
bd843e6d1f
commit
04dcf93c0c
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user