Explorar el Código

修复添加任务时,上移操作bug

insomniaLee hace 5 años
padre
commit
eaf9e7f256
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/main/resources/static/js/addTask.js

+ 1 - 1
src/main/resources/static/js/addTask.js

@@ -285,7 +285,7 @@ deleteTr = function(element){
 
 upTr = function(element){
     var $tr = $(element).parents("tr");
-    if ($tr.index() != 0) {
+    if ($tr.index() != 1) {
         $tr.prev().before($tr);
     }
 }