mirror of
https://github.com/maxpozdeev/mytinytodo.git
synced 2026-03-11 08:55:27 +00:00
* clear text select on task doubleclick
This commit is contained in:
parent
667384fab3
commit
297d712b77
1 changed files with 4 additions and 0 deletions
|
|
@ -289,6 +289,10 @@ var mytinytodo = window.mytinytodo = _mtt = {
|
|||
|
||||
// tasklist handlers
|
||||
$('#tasklist li').live('dblclick', function(){
|
||||
//clear selection
|
||||
if(document.selection && document.selection.empty && document.selection.createRange().text) document.selection.empty();
|
||||
else if(window.getSelection) window.getSelection().removeAllRanges();
|
||||
|
||||
var li = findParentNode(this, 'LI');
|
||||
if(li && li.id) {
|
||||
var id = li.id.split('_',2)[1];
|
||||
|
|
|
|||
Loading…
Reference in a new issue