Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Welcome to Codidact Meta!

Codidact Meta is the meta-discussion site for the Codidact community network and the Codidact software. Whether you have bug reports or feature requests, support questions or rule discussions that touch the whole network – this is the site for you.

Post History

66%
+2 −0
Q&A TOC display problem after answer deletion

Describe the bug After deleting an answer(s), the table of contents can still be displayed even if there are less answers than the "number of answers to trigger the TOC" and even if there is no an...

1 answer  ·  posted 10mo ago by zetyty‭  ·  edited 9mo ago by zetyty‭

#5: Post edited by user avatar zetyty‭ · 2023-08-06T20:41:13Z (9 months ago)
Typo
  • **Describe the bug**
  • After deleting an answer(s), the table of contents can still be displayed even if there are less answers than the "number of answers to trigger the TOC" and even if there is no answer to the question (in this case the `Table of Contents` button is displayed but clicking it has no effect other than a slight colour change).
  • **To Reproduce**
  • Steps to reproduce the behavior:
  • 0. To see an example, go to [this post](https://meta.codidact.com/posts/288826) and click on the `Table of Contents` button to see that there is only one answer (***it would be nice if a Mod can confirm that there is at least 1 deleted answer to this question***). Another post with all answers deleted has been created at [https://b.dev.codidact.org/](https://b.dev.codidact.org/posts/648) (feel free to play with it).
  • 1. Create a new question post.
  • 2. Add answers to this post until the `Table of Contents` button is displayed.
  • 3. Delete one answer (the `Table of Contents` should still be displayed but with less answers).
  • 4. Delete all answers (the `Table of Contents` button is displayed but clicking it only changes the colour rather than opening a table).
  • **Expected behavior**
  • The `Table of Contents` button should be removed if, after an answer deletion, the number of remaining answers is lower than the number of answers to trigger the TOC (settable parameter).
  • **Screenshots**
  • Below an example with [the linked question](https://meta.codidact.com/posts/288826):
  • >![Example from https://meta.codidact.com/posts/288826](https://meta.codidact.com/uploads/7guepm5snl2lnjdayy605yss843z)
  • **EDIT after [answer](https://meta.codidact.com/posts/289241/289242#answer-289242):** Here an example where all the answer have been deleted ([accessible here](https://b.dev.codidact.org/posts/648)), the `Table of Contents` button is just set to gray after clicking on it (this is the view of the user who delete all the answers, then this user see all deleted answers but these answer are not displayed in the TOC):
  • >![Example of the Table of Contents button display after clicking on it when all answers are deleted](https://meta.codidact.com/uploads/hyfmitx3dl1p86m1ljrvn0j03ivm)
  • **Describe the bug**
  • After deleting an answer(s), the table of contents can still be displayed even if there are less answers than the "number of answers to trigger the TOC" and even if there is no answer to the question (in this case the `Table of Contents` button is displayed but clicking it has no effect other than a slight colour change).
  • **To Reproduce**
  • Steps to reproduce the behavior:
  • 0. To see an example, go to [this post](https://meta.codidact.com/posts/288826) and click on the `Table of Contents` button to see that there is only one answer (***it would be nice if a Mod can confirm that there is at least 1 deleted answer to this question***). Another post with all answers deleted has been created at [https://b.dev.codidact.org/](https://b.dev.codidact.org/posts/648) (feel free to play with it).
  • 1. Create a new question post.
  • 2. Add answers to this post until the `Table of Contents` button is displayed.
  • 3. Delete one answer (the `Table of Contents` should still be displayed but with less answers).
  • 4. Delete all answers (the `Table of Contents` button is displayed but clicking it only changes the colour rather than opening a table).
  • **Expected behavior**
  • The `Table of Contents` button should be removed if, after an answer deletion, the number of remaining answers is lower than the number of answers to trigger the TOC (settable parameter).
  • **Screenshots**
  • Below an example with [the linked question](https://meta.codidact.com/posts/288826):
  • >![Example from https://meta.codidact.com/posts/288826](https://meta.codidact.com/uploads/7guepm5snl2lnjdayy605yss843z)
  • **EDIT after [answer](https://meta.codidact.com/posts/289241/289242#answer-289242):** Here an example where all the answers have been deleted ([accessible here](https://b.dev.codidact.org/posts/648)), the `Table of Contents` button is just set to gray after clicking on it (this is the view of the user who delete all the answers, then this user see all deleted answers but these answers are not displayed in the TOC):
  • >![Example of the Table of Contents button display after clicking on it when all answers are deleted](https://meta.codidact.com/uploads/hyfmitx3dl1p86m1ljrvn0j03ivm)
#4: Post edited by user avatar zetyty‭ · 2023-08-06T19:17:53Z (9 months ago)
Add blockquote arround figures
  • **Describe the bug**
  • After deleting an answer(s), the table of contents can still be displayed even if there are less answers than the "number of answers to trigger the TOC" and even if there is no answer to the question (in this case the `Table of Contents` button is displayed but clicking it has no effect other than a slight colour change).
  • **To Reproduce**
  • Steps to reproduce the behavior:
  • 0. To see an example, go to [this post](https://meta.codidact.com/posts/288826) and click on the `Table of Contents` button to see that there is only one answer (***it would be nice if a Mod can confirm that there is at least 1 deleted answer to this question***). Another post with all answers deleted has been created at [https://b.dev.codidact.org/](https://b.dev.codidact.org/posts/648) (feel free to play with it).
  • 1. Create a new question post.
  • 2. Add answers to this post until the `Table of Contents` button is displayed.
  • 3. Delete one answer (the `Table of Contents` should still be displayed but with less answers).
  • 4. Delete all answers (the `Table of Contents` button is displayed but clicking it only changes the colour rather than opening a table).
  • **Expected behavior**
  • The `Table of Contents` button should be removed if, after an answer deletion, the number of remaining answers is lower than the number of answers to trigger the TOC (settable parameter).
  • **Screenshots**
  • Below an example with [the linked question](https://meta.codidact.com/posts/288826):
  • ![Example from https://meta.codidact.com/posts/288826](https://meta.codidact.com/uploads/7guepm5snl2lnjdayy605yss843z)
  • **EDIT after [answer](https://meta.codidact.com/posts/289241/289242#answer-289242):** Here an example where all the answer have been deleted ([accessible here](https://b.dev.codidact.org/posts/648)), the `Table of Contents` button is just set to gray after clicking on it (this is the view of the user who delete all the answers, then this user see all deleted answers but these answer are not displayed in the TOC):
  • ![Example of the Table of Contents button display after clicking on it when all answers are deleted](https://meta.codidact.com/uploads/hyfmitx3dl1p86m1ljrvn0j03ivm)
  • **Describe the bug**
  • After deleting an answer(s), the table of contents can still be displayed even if there are less answers than the "number of answers to trigger the TOC" and even if there is no answer to the question (in this case the `Table of Contents` button is displayed but clicking it has no effect other than a slight colour change).
  • **To Reproduce**
  • Steps to reproduce the behavior:
  • 0. To see an example, go to [this post](https://meta.codidact.com/posts/288826) and click on the `Table of Contents` button to see that there is only one answer (***it would be nice if a Mod can confirm that there is at least 1 deleted answer to this question***). Another post with all answers deleted has been created at [https://b.dev.codidact.org/](https://b.dev.codidact.org/posts/648) (feel free to play with it).
  • 1. Create a new question post.
  • 2. Add answers to this post until the `Table of Contents` button is displayed.
  • 3. Delete one answer (the `Table of Contents` should still be displayed but with less answers).
  • 4. Delete all answers (the `Table of Contents` button is displayed but clicking it only changes the colour rather than opening a table).
  • **Expected behavior**
  • The `Table of Contents` button should be removed if, after an answer deletion, the number of remaining answers is lower than the number of answers to trigger the TOC (settable parameter).
  • **Screenshots**
  • Below an example with [the linked question](https://meta.codidact.com/posts/288826):
  • >![Example from https://meta.codidact.com/posts/288826](https://meta.codidact.com/uploads/7guepm5snl2lnjdayy605yss843z)
  • **EDIT after [answer](https://meta.codidact.com/posts/289241/289242#answer-289242):** Here an example where all the answer have been deleted ([accessible here](https://b.dev.codidact.org/posts/648)), the `Table of Contents` button is just set to gray after clicking on it (this is the view of the user who delete all the answers, then this user see all deleted answers but these answer are not displayed in the TOC):
  • >![Example of the Table of Contents button display after clicking on it when all answers are deleted](https://meta.codidact.com/uploads/hyfmitx3dl1p86m1ljrvn0j03ivm)
#3: Post edited by user avatar zetyty‭ · 2023-08-05T20:45:54Z (10 months ago)
add example with all answers deleted
  • **Describe the bug**
  • After deleting an answer(s), the table of contents can still be displayed even if there are less answers than the "number of answers to trigger the TOC" and even if there is no answer to the question (in this case the `Table of Contents` button is displayed but clicking it has no effect other than a slight colour change).
  • **To Reproduce**
  • Steps to reproduce the behavior:
  • 0. To see an example, go to [this post](https://meta.codidact.com/posts/288826) and click on the `Table of Contents` button to see that there is only one answer (***it would be nice if a Mod can confirm that there is at least 1 deleted answer to this question***).
  • 1. Create a new question post.
  • 2. Add answers to this post until the `Table of Contents` button is displayed.
  • 3. Delete one answer (the `Table of Contents` should still be displayed but with less answers).
  • 4. Delete all answers (the `Table of Contents` button is displayed but clicking it only changes the colour rather than opening a table).
  • **Expected behavior**
  • The `Table of Contents` button should be removed if, after an answer deletion, the number of remaining answers is lower than the number of answers to trigger the TOC (settable parameter).
  • **Screenshots**
  • Below an example with [the linked question](https://meta.codidact.com/posts/288826):
  • ![Example from https://meta.codidact.com/posts/288826](https://meta.codidact.com/uploads/7guepm5snl2lnjdayy605yss843z)
  • **Describe the bug**
  • After deleting an answer(s), the table of contents can still be displayed even if there are less answers than the "number of answers to trigger the TOC" and even if there is no answer to the question (in this case the `Table of Contents` button is displayed but clicking it has no effect other than a slight colour change).
  • **To Reproduce**
  • Steps to reproduce the behavior:
  • 0. To see an example, go to [this post](https://meta.codidact.com/posts/288826) and click on the `Table of Contents` button to see that there is only one answer (***it would be nice if a Mod can confirm that there is at least 1 deleted answer to this question***). Another post with all answers deleted has been created at [https://b.dev.codidact.org/](https://b.dev.codidact.org/posts/648) (feel free to play with it).
  • 1. Create a new question post.
  • 2. Add answers to this post until the `Table of Contents` button is displayed.
  • 3. Delete one answer (the `Table of Contents` should still be displayed but with less answers).
  • 4. Delete all answers (the `Table of Contents` button is displayed but clicking it only changes the colour rather than opening a table).
  • **Expected behavior**
  • The `Table of Contents` button should be removed if, after an answer deletion, the number of remaining answers is lower than the number of answers to trigger the TOC (settable parameter).
  • **Screenshots**
  • Below an example with [the linked question](https://meta.codidact.com/posts/288826):
  • ![Example from https://meta.codidact.com/posts/288826](https://meta.codidact.com/uploads/7guepm5snl2lnjdayy605yss843z)
  • **EDIT after [answer](https://meta.codidact.com/posts/289241/289242#answer-289242):** Here an example where all the answer have been deleted ([accessible here](https://b.dev.codidact.org/posts/648)), the `Table of Contents` button is just set to gray after clicking on it (this is the view of the user who delete all the answers, then this user see all deleted answers but these answer are not displayed in the TOC):
  • ![Example of the Table of Contents button display after clicking on it when all answers are deleted](https://meta.codidact.com/uploads/hyfmitx3dl1p86m1ljrvn0j03ivm)
#2: Post edited by user avatar trichoplax‭ · 2023-08-05T08:57:18Z (10 months ago)
Tidying
  • **Describe the bug**
  • After deleting an answer(s), the table of contents can still be displayed even if there is less answer than the "number of answers to trigger the TOC" and even if there is no answer to the question (in this case the `Table of Contents` button is displayed but not clickable).
  • **To Reproduce**
  • Steps to reproduce the behavior:
  • 0. To see an example, go to [this post](https://meta.codidact.com/posts/288826) and click on the `Table of Contents` button to see that there is only one answer (***it would be nice if a Mod can confirm that there is a least a deleted answer to this question***).
  • 1. Create a new question post.
  • 2. Add answers to this post until the `Table of Contents` button is displayed.
  • 3. Delete one answer (the `Table of Contents` should still be displayed but with less answers).
  • 4. Delete all answers (the `Table of Contents` button is displayed but not clickable).
  • **Expected behavior**
  • The `Table of Contents` button should be removed if, after an answer deletion, the number of remaining if lower than the number of answers to trigger the TOC (settable parameter).
  • **Screenshots**
  • Below an example with [the linked question](https://meta.codidact.com/posts/288826):
  • ![Example from https://meta.codidact.com/posts/288826](https://meta.codidact.com/uploads/7guepm5snl2lnjdayy605yss843z)
  • **Describe the bug**
  • After deleting an answer(s), the table of contents can still be displayed even if there are less answers than the "number of answers to trigger the TOC" and even if there is no answer to the question (in this case the `Table of Contents` button is displayed but clicking it has no effect other than a slight colour change).
  • **To Reproduce**
  • Steps to reproduce the behavior:
  • 0. To see an example, go to [this post](https://meta.codidact.com/posts/288826) and click on the `Table of Contents` button to see that there is only one answer (***it would be nice if a Mod can confirm that there is at least 1 deleted answer to this question***).
  • 1. Create a new question post.
  • 2. Add answers to this post until the `Table of Contents` button is displayed.
  • 3. Delete one answer (the `Table of Contents` should still be displayed but with less answers).
  • 4. Delete all answers (the `Table of Contents` button is displayed but clicking it only changes the colour rather than opening a table).
  • **Expected behavior**
  • The `Table of Contents` button should be removed if, after an answer deletion, the number of remaining answers is lower than the number of answers to trigger the TOC (settable parameter).
  • **Screenshots**
  • Below an example with [the linked question](https://meta.codidact.com/posts/288826):
  • ![Example from https://meta.codidact.com/posts/288826](https://meta.codidact.com/uploads/7guepm5snl2lnjdayy605yss843z)
#1: Initial revision by user avatar zetyty‭ · 2023-08-05T08:10:48Z (10 months ago)
TOC display problem after answer deletion
**Describe the bug**  
After deleting an answer(s), the table of contents can still be displayed even if there is less answer than the "number of answers to trigger the TOC" and even if there is no answer to the question (in this case the `Table of Contents` button is displayed but not clickable).

**To Reproduce**  
Steps to reproduce the behavior:  

  0. To see an example, go to [this post](https://meta.codidact.com/posts/288826) and click on the `Table of Contents` button to see that there is only one answer (***it would be nice if a Mod can confirm that there is a least a deleted answer to this question***).  
1. Create a new question post.
2. Add answers to this post until the `Table of Contents` button is displayed.
3. Delete one answer (the `Table of Contents` should still be displayed but with less answers).
4. Delete all answers (the `Table of Contents` button is displayed but not clickable).

**Expected behavior**  
The `Table of Contents` button should be removed if, after an answer deletion, the number of remaining if lower than the number of answers to trigger the TOC (settable parameter).

**Screenshots**  
Below an example with [the linked question](https://meta.codidact.com/posts/288826):
![Example from https://meta.codidact.com/posts/288826](https://meta.codidact.com/uploads/7guepm5snl2lnjdayy605yss843z)