Skip to content

Commit

Permalink
refactor(todo.js): remove redundant variable assignments for PerfectS…
Browse files Browse the repository at this point in the history
…crollbar instances

- Removed redundant variable assignments for PerfectScrollbar instances in the populateTodofunction.
- Added a missing semicolon in the importantBtnListener function.
  • Loading branch information
psyray committed Sep 11, 2024
1 parent a885a0d commit 8031c44
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions web/recon_note/static/note/js/todo.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
const populateTodofunction = function(project=null){
const taskViewScroll = new PerfectScrollbar('.task-text', {
new PerfectScrollbar('.task-text', {
wheelSpeed:.5,
swipeEasing:!0,
minScrollbarLength:40,
maxScrollbarLength:300,
suppressScrollX : true
});
const ps = new PerfectScrollbar('.todo-box-scroll', {
new PerfectScrollbar('.todo-box-scroll', {
suppressScrollX : true
});

const todoListScroll = new PerfectScrollbar('.todoList-sidebar-scroll', {
new PerfectScrollbar('.todoList-sidebar-scroll', {
suppressScrollX : true
});

Expand Down Expand Up @@ -304,7 +304,7 @@ const importantBtnListener = function() {
<span class="text-danger bs-tooltip" title="Important Todo">
<i class="fa fa-exclamation-circle"></i>
</span>
</div>`
</div>`;

is_important_badge.innerHTML = badge;

Expand Down

0 comments on commit 8031c44

Please sign in to comment.