diff options
[checklist] Lock button has it's text updated and how disabled input fields
1 files changed, 6 insertions, 1 deletions
| -rw-r--r-- | checklist.html | 7 |
diff --git a/checklist.html b/checklist.html index 23d3dcd..dcb8f95 100644 --- a/checklist.html +++ b/checklist.html @@ -57,6 +57,10 @@ input { #article-add-item, #article-sub-item, .item-add, .item-remove { display: none; } + +.textlike { + pointer-events: none; +} </style> </head> <body> @@ -64,7 +68,7 @@ input { <h2>Checklists</h2> <p> With plus you add an item to the bottom of a checklist. - With minus you remove it. With "Lock" you disable all adding and removeal of items. + With minus you remove it. With "Lock" you can select to only be able to check and uncheck items. "U" and "C" buttons correspond to uncheck and check functionality. "Export" creates and puts a string, representing the whole checklist and what items are checked, in the text box on the right, as well as in the current link. This means that, after pressing "Export", you can copy the link of the current page and share it, or you can copy the text itself (double-click to select all). @@ -209,6 +213,7 @@ input { document.getElementById('lock-items').onclick = function () { stylesheetLocked.disabled = !stylesheetLocked.disabled; + this.value = (this.value == 'Lock') ? 'Unlock' : 'Lock'; } document.getElementById('uncheck-all').onclick = function () { |