Pārlūkot izejas kodu

subtree limit alpha

Ivan Asmer 8 gadi atpakaļ
vecāks
revīzija
6e8915b343
1 mainītis faili ar 4 papildinājumiem un 1 dzēšanām
  1. 4 1
      static/index.js

+ 4 - 1
static/index.js

@@ -59,7 +59,8 @@ setTimeout(function(){
         var thisLine = this.parentElement.parentElement;
         arr.splice(thisLine.rowIndex,1)
         $s.hashTable = arr;
-        document.onchange();
+        $s.btnDel = {onclick: btnDel};
+        //document.onchange();
     };
     $s.btnDel = {onclick: btnDel};
 
@@ -67,6 +68,8 @@ setTimeout(function(){
         var arr = $s.hashTable.slice();
         arr.push(Object.assign({},arr[0]))
         $s.hashTable = arr;
+        $s.btnDel = {onclick: btnDel};
+
             
         
         //var newLine = document.getElementById('hashTable').copy.children[0].cloneNode(true);