ep_table_of_contents 0.3.127 → 0.3.129

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ep_table_of_contents",
3
- "version": "0.3.127",
3
+ "version": "0.3.129",
4
4
  "description": "View a table of contents for your pad",
5
5
  "author": {
6
6
  "name": "John McLear",
@@ -17,7 +17,7 @@ exports.postAceInit = () => {
17
17
  if (optionToc.is(':checked')) {
18
18
  tableOfContents.enable(); // enables line tocping
19
19
  } else {
20
- optionToc.attr('checked', false);
20
+ optionToc.prop('checked', false);
21
21
  tableOfContents.disable(); // disables line tocping
22
22
  }
23
23
  });
@@ -29,7 +29,7 @@ exports.postAceInit = () => {
29
29
 
30
30
  const urlContainstocTrue = tableOfContents.getParam('toc'); // if the url param is set
31
31
  if (urlContainstocTrue) {
32
- optionToc.attr('checked', 'checked');
32
+ optionToc.prop('checked', true);
33
33
  tableOfContents.enable();
34
34
  }
35
35
  };
@@ -1,6 +1,6 @@
1
1
  <li data-key="ep_table_of_contents-toggle" data-type="button" onClick="toggleToc();">
2
2
  <a id="ep_table_of_contents-a" data-l10n-id="ep_table_of_contents.toc.title">
3
- <button class="buttonicon buttonicon-insertunorderedlist" data-l10n-id="ep_table_of_contents.toc.title"></button>
3
+ <button class="buttonicon buttonicon-insertunorderedlist" aria-label="Table of Contents" data-l10n-id="ep_table_of_contents.toc.title"></button>
4
4
  </a>
5
5
  </li>
6
6
  <li class="separator"></li>