Skip to content

Commit

Permalink
Merge pull request #2590 from phili67/phili67-todolist-update
Browse files Browse the repository at this point in the history
todolist : update
  • Loading branch information
phili67 committed Apr 7, 2024
2 parents ee732f5 + a1ba20b commit b2d44bb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Plugins/ToDoListDashboard/skin/js/ToDoListDashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,8 @@ $(function() {
' <i class="fas fa-ellipsis-v"></i>' +
' </span>' +
' <div class="icheck-primary d-inline ml-2">' +
' <input type="checkbox" value="" name="todo1" class="todoListItemCheck" data-id="' + data.items[i].Id + '" ' + (data.items[i].Checked == true?'checked':'') + '>' +
' <label for="todoCheck1"></label>' +
' <input type="checkbox" value="" name="todo' + data.items[i].Id + '" class="todoListItemCheck" data-id="' + data.items[i].Id + '" ' + (data.items[i].Checked == true?'checked':'') + ' id="todo-' + data.items[i].Id + '">' +
' <label for="todo-' + data.items[i].Id + '"></label>' +
' </div>' +
' <span class="text">' + data.items[i].Name + '</span>' +
' <small class="badge badge-' + data.items[i].color + '"><i class="far fa-clock"></i> ' + data.items[i].period + '</small>' +
Expand Down
4 changes: 2 additions & 2 deletions src/Plugins/ToDoListDashboard/v2/templates/View.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@
</span>

<div class="icheck-primary d-inline ml-2">
<input type="checkbox" value="" name="todo1" class="todoListItemCheck" data-id="<?= $item->getId() ?>" <?= ($item->isChecked() == 1)?"checked":"" ?>>
<label for="todoCheck1"></label>
<input type="checkbox" value="" name="todo1" class="todoListItemCheck" data-id="<?= $item->getId() ?>" <?= ($item->isChecked() == 1)?"checked":"" ?> id="todo-<?= $item->getId() ?>">
<label for="todo-<?= $item->getId() ?>"></label>
</div>

<span class="text"><?= $item->getName() ?></span>
Expand Down

0 comments on commit b2d44bb

Please sign in to comment.