Skip to content

Commit

Permalink
[FIX] Docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Seiger committed May 9, 2024
1 parent e8c26db commit a3da7f3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions docs/_data/toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,8 @@
url: "getting-started"
- title: "Management tabs"
url: "management"
- title: "Attributes"
url: "attributes"
links:
- title: "Custom Attribute"
url: "custom"
4 changes: 2 additions & 2 deletions docs/pages/attributes/custom.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ if ($vals) {
<div class="row form-row">
<div class="input-group mb-1 row-col col-lg-1 col-lg-2 col-md-3 col-6">
<div class="input-group-prepend"><span class="input-group-text"><small>Date from</small></span></div>
<input value="{% raw %}{{$val['from']}}" type="date" class="form-control" autocomplete="off" onchange="this.nextElementSibling.value = this.value">
<input value="{% raw %}{{$val['from']}}{% endraw %}" type="date" class="form-control" autocomplete="off" onchange="this.nextElementSibling.value = this.value">
<input name="attribute__{% raw %}{{$item->id}}{% endraw %}[{% raw %}{{$loop->index}}{% endraw %}][from]" value="{% raw %}{{$val['from']}}{% endraw %}" type="hidden" onchange="documentDirty=true;">
</div>
<div class="input-group mb-1 row-col col-lg-1 col-lg-2 col-md-3 col-6">
Expand Down Expand Up @@ -250,7 +250,7 @@ if ($vals) {
</div>
</div>
<script>
function add{% raw %}{{$item->id}}Attr (e) {
function add{% raw %}{{$item->id}}{% endraw %}Attr (e) {
let block = e.parentNode.nextElementSibling;
let index = block.children.length + 1000;
let element = block.firstElementChild.innerHTML.replaceAll(/attribute__{% raw %}{{$item->id}}{% endraw %}\[0\]/gi, 'attribute__{% raw %}{{$item->id}}{% endraw %}['+index+']').replaceAll(/(value)=("[^"]*")/gi, 'value=""');
Expand Down

0 comments on commit a3da7f3

Please sign in to comment.