additions for prev commit

This commit is contained in:
maxpozdeev 2022-10-18 21:33:35 +03:00
parent 489a027fa3
commit bfa83ea244
3 changed files with 8 additions and 2 deletions

View file

@ -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 {

View file

@ -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);

View file

@ -213,7 +213,7 @@ $().ready(function(){
<div id="tagcloud" style="display:none">
<div class="actions">
<div><label><input id="tagcloudAllLists" type="checkbox" /> <?php _e('showTagsFromAllLists');?></label></div>
<div><input id="tagcloudAllLists" type="checkbox" /> <label for="tagcloudAllLists"><?php _e('showTagsFromAllLists');?></label></div>
<div id="tagcloudcancel" class="mtt-img-button"><span></span></div>
</div>
<div class="content">