Skip to content

Commit

Permalink
Fixes inserting of version justification block
Browse files Browse the repository at this point in the history
Signed-off-by: Jhon <[email protected]>
  • Loading branch information
JhonathanLepidus committed Aug 10, 2023
1 parent 294be7e commit ef44f4d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions templates/versionJustificationBlock.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
</div>

<script>
const categoriesBlock = document.getElementsByClassName("item categories")[0];
function insertAfter(newNode, referenceNode) {ldelim}
referenceNode.parentNode.insertBefore(newNode, referenceNode.nextSibling);
{rdelim}
const publishedBlock = document.getElementsByClassName("item published")[0];
const justificationBlock = document.getElementsByClassName('item versionJustification')[0];
categoriesBlock.parentNode.insertBefore(justificationBlock, categoriesBlock);
insertAfter(justificationBlock, publishedBlock);
</script>
4 changes: 2 additions & 2 deletions version.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
<version>
<application>authorVersion</application>
<type>plugins.generic</type>
<release>1.2.3.0</release>
<date>2023-08-08</date>
<release>1.2.4.0</release>
<date>2023-08-10</date>
<lazy-load>1</lazy-load>
<class>AuthorVersionPlugin</class>
</version>

0 comments on commit ef44f4d

Please sign in to comment.