* enable tag cloud in all tasks list

This commit is contained in:
maxpozdeev 2022-10-18 21:12:21 +03:00
parent 681d06a31d
commit 489a027fa3
2 changed files with 11 additions and 3 deletions

View file

@ -272,7 +272,12 @@ var mytinytodo = window.mytinytodo = _mtt = {
});
$('#tagcloudbtn').click(function(){
$('#tagcloudAllLists').prop('checked', flag.showTagsFromAllLists);
if (curList.id == -1) {
$('#tagcloudAllLists').prop('checked', true).prop('disabled', true);
}
else {
$('#tagcloudAllLists').prop('checked', flag.showTagsFromAllLists).prop('disabled', false);
}
if(!_mtt.menus.tagcloud) _mtt.menus.tagcloud = new mttMenu('tagcloud', {
beforeShow: function(){
if(flag.tagsChanged) {

View file

@ -730,8 +730,11 @@ h3.page-title a.mtt-back-button {
#priopopup .prio-pos:hover { border-color: var(--color-priority-urgent); }
#priopopup .prio-pos-1:hover { border-color: var(--color-priority-high); }
#tagcloudbtn { font-size:1rem; font-weight:normal; margin-left:auto; }
#mtt.show-all-tasks #tagcloudbtn { display:none; }
#tagcloudbtn {
font-size: 1rem;
font-weight: normal;
margin-left: auto;
}
#tagcloud {
overflow: hidden; z-index:100;
background-color:var(--color-menu);