mirror of
https://github.com/maxpozdeev/mytinytodo.git
synced 2026-03-11 08:55:27 +00:00
* only doubleclick on task title will open task editor, not on notes
This commit is contained in:
parent
dc155f000e
commit
307386554f
1 changed files with 7 additions and 7 deletions
|
|
@ -434,14 +434,14 @@ var mytinytodo = window.mytinytodo = _mtt = {
|
|||
}
|
||||
});
|
||||
|
||||
$('#tasklist').on('dblclick', '> li.task-row', function(){
|
||||
//clear selection
|
||||
if(document.selection && document.selection.empty && document.selection.createRange().text) document.selection.empty();
|
||||
else if(window.getSelection) window.getSelection().removeAllRanges();
|
||||
$('#tasklist').on('dblclick', '> li.task-row .task-middle', function(){
|
||||
var id = parseInt(getLiTaskId(this));
|
||||
if (id) {
|
||||
//clear selection
|
||||
if (document.selection && document.selection.empty && document.selection.createRange().text) document.selection.empty();
|
||||
else if(window.getSelection) window.getSelection().removeAllRanges();
|
||||
|
||||
if (this.id) {
|
||||
var id = this.id.split('_',2)[1];
|
||||
if (id) editTask(parseInt(id));
|
||||
editTask(parseInt(id));
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue