mirror of
https://github.com/maxpozdeev/mytinytodo.git
synced 2026-03-11 08:55:27 +00:00
* disable current list in "Move to" submenu of context menu (thanks to merzhin)
(fixes issue #19)
This commit is contained in:
parent
50fd3d7628
commit
cce4f0510b
2 changed files with 4 additions and 2 deletions
|
|
@ -901,7 +901,6 @@ function loadLists(onInit, updAccess)
|
|||
loadTasks();
|
||||
//if(curList.published)
|
||||
$('#rss_icon').find('a').attr('href', 'feed.php?list='+curList.id);
|
||||
mytinytodo.doAction('listSelected', curList);
|
||||
if(flag.needAuth && !flag.isLogged) $('#bar_public').show();
|
||||
}
|
||||
else {
|
||||
|
|
@ -915,6 +914,7 @@ function loadLists(onInit, updAccess)
|
|||
$('#lists>ul').html(ti);
|
||||
$('#lists').show();
|
||||
mytinytodo.doAction('listsLoaded');
|
||||
if(curList) mytinytodo.doAction('listSelected', curList);
|
||||
if(!flag.needAuth || flag.isLogged || curList) $('#page_tasks').show();
|
||||
});
|
||||
$('#page_tasks').hide();
|
||||
|
|
@ -1312,6 +1312,8 @@ function actionListSelected(list)
|
|||
else $('#btnPublish').removeClass('mtt-item-checked');
|
||||
if(list.showCompl) $('#btnShowCompleted').addClass('mtt-item-checked');
|
||||
else $('#btnShowCompleted').removeClass('mtt-item-checked');
|
||||
$('#listsmenucontainer li').removeClass('mtt-disabled');
|
||||
$('#cmenu_list\\:'+list.id).addClass('mtt-disabled');
|
||||
}
|
||||
|
||||
function tz()
|
||||
|
|
|
|||
|
|
@ -195,7 +195,7 @@ li.task-completed .task-note-block .task-note { text-decoration:line-through; }
|
|||
.mtt-btnmenu-container ul { list-style: none; padding:0; margin:0; }
|
||||
.mtt-btnmenu-container li { margin:1px 0px; padding:2px 3px; cursor:pointer; color:#000; white-space:nowrap; }
|
||||
.mtt-btnmenu-container li:hover { background-color:#316AC5; color:white; }
|
||||
.mtt-btnmenu-container li.mtt-need-list.mtt-disabled { color:#ACA899; }
|
||||
.mtt-btnmenu-container li.mtt-disabled { color:#ACA899; }
|
||||
.mtt-btnmenu-container a { display:block; text-decoration:none; outline:none; color:#000; }
|
||||
.mtt-btnmenu-container li:hover a { color:white; }
|
||||
.mtt-btnmenu-container.mtt-menu-has-images li { padding-left:18px; }
|
||||
|
|
|
|||
Loading…
Reference in a new issue