Skip to content

Commit

Permalink
Merge pull request #149 from eroamane/patch-1
Browse files Browse the repository at this point in the history
Prevent page refresh after clicking the context menu.
  • Loading branch information
binux authored Jul 8, 2020
2 parents 0f4aa13 + 31bd649 commit 0666a0a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
4 changes: 4 additions & 0 deletions css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,10 @@
position: fixed;
z-index: 99;
}
#task-contextmenu li > a {
user-select: none;
-moz-user-select: none;
}

/* add task modal */
#add-task-modal {
Expand Down
16 changes: 8 additions & 8 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -145,15 +145,15 @@ <h1>Yet Another Aria2 Web Frontend</h1>
</div>

<ul id="task-contextmenu" class="dropdown-menu">
<li class="task-restart"><a href="#" id="menuRestart" >ReStart</a></li>
<li class="task-start"><a href="#" id="menuStart" >Start</a></li>
<li class="task-pause"><a href="#" id="menuPause" >Pause</a></li>
<li><a href="#" id="menuRemove" >Remove</a></li>
<li class="task-restart"><a id="menuRestart" >ReStart</a></li>
<li class="task-start"><a id="menuStart" >Start</a></li>
<li class="task-pause"><a id="menuPause" >Pause</a></li>
<li class="task-remove"><a id="menuRemove" >Remove</a></li>
<li class="task-move divider"></li>
<li class="task-move"><a href="#" id="menuMoveTop" >MoveTop</a></li>
<li class="task-move"><a href="#" id="menuMoveUp" >MoveUp</a></li>
<li class="task-move"><a href="#" id="menuMoveDown" >MoveDown</a></li>
<li class="task-move"><a href="#" id="menuMoveEnd" >MoveEnd</a></li>
<li class="task-move"><a id="menuMoveTop" >MoveTop</a></li>
<li class="task-move"><a id="menuMoveUp" >MoveUp</a></li>
<li class="task-move"><a id="menuMoveDown" >MoveDown</a></li>
<li class="task-move"><a id="menuMoveEnd" >MoveEnd</a></li>
</ul>

<section class="modal hide fade" id="add-task-modal">
Expand Down

0 comments on commit 0666a0a

Please sign in to comment.