mirror of
https://github.com/maxpozdeev/mytinytodo.git
synced 2026-03-11 08:55:27 +00:00
* tagPreviewDelay in options
This commit is contained in:
parent
c3fba7503f
commit
fce44e85f9
1 changed files with 2 additions and 1 deletions
|
|
@ -51,6 +51,7 @@ var mytinytodo = window.mytinytodo = _mtt = {
|
|||
singletab: false,
|
||||
autotag: false,
|
||||
tagPreview: true,
|
||||
tagPreviewDelay: 700, //milliseconds
|
||||
saveShowNotes: false,
|
||||
firstdayofweek: 1
|
||||
},
|
||||
|
|
@ -370,7 +371,7 @@ var mytinytodo = window.mytinytodo = _mtt = {
|
|||
var cl = 'tag-id-' + $(this).attr('tagid');
|
||||
var sel = (event.metaKey || event.ctrlKey) ? 'li.'+cl : 'li:not(.'+cl+')';
|
||||
if(event.type == 'mouseover') {
|
||||
_mtt.timers.previewtag = setTimeout( function(){$('#tasklist '+sel).addClass('not-in-tagpreview');}, 700);
|
||||
_mtt.timers.previewtag = setTimeout( function(){$('#tasklist '+sel).addClass('not-in-tagpreview');}, _mtt.options.tagPreviewDelay);
|
||||
}
|
||||
else {
|
||||
clearTimeout(_mtt.timers.previewtag);
|
||||
|
|
|
|||
Loading…
Reference in a new issue