From bfa83ea244fc6026ec8465cf8878ee88e7fcef4a Mon Sep 17 00:00:00 2001 From: maxpozdeev Date: Tue, 18 Oct 2022 21:33:35 +0300 Subject: [PATCH] additions for prev commit --- src/content/mytinytodo.js | 5 ++++- src/content/theme/style.css | 3 +++ src/includes/theme.php | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/content/mytinytodo.js b/src/content/mytinytodo.js index f5cd7d3..82ae51b 100644 --- a/src/content/mytinytodo.js +++ b/src/content/mytinytodo.js @@ -272,7 +272,10 @@ var mytinytodo = window.mytinytodo = _mtt = { }); $('#tagcloudbtn').click(function(){ - if (curList.id == -1) { + if (flag.readOnly) { + $('#tagcloudAllLists').prop('checked', false).prop('disabled', true); + } + else if (curList.id == -1) { $('#tagcloudAllLists').prop('checked', true).prop('disabled', true); } else { diff --git a/src/content/theme/style.css b/src/content/theme/style.css index 2f76626..a21bb4e 100644 --- a/src/content/theme/style.css +++ b/src/content/theme/style.css @@ -778,6 +778,9 @@ h3.page-title a.mtt-back-button { #tagcloud .actions > *:first-child { flex-grow: 1; } +#tagcloudAllLists:disabled + label { + opacity: 0.6; +} #tagcloudcancel span { mask: url(images/closetag.svg) no-repeat; -webkit-mask: url(images/closetag.svg) no-repeat; background-color: var(--color-btn-reduced); diff --git a/src/includes/theme.php b/src/includes/theme.php index 50d859b..348d30b 100644 --- a/src/includes/theme.php +++ b/src/includes/theme.php @@ -213,7 +213,7 @@ $().ready(function(){