]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5610 Fix chrome freezes on the components page
authorStas Vilchik <vilchiks@gmail.com>
Mon, 10 Nov 2014 09:27:44 +0000 (10:27 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Mon, 10 Nov 2014 09:27:44 +0000 (10:27 +0100)
server/sonar-web/src/main/js/sortable.js

index edc48d12190077db359dbe791d5c0edbb0ab57f0..487165ae22b7204b41225f20bace0c6cf8086333 100644 (file)
     });
 
     rows.detach();
-    var newRows = jQuery();
     sortArray.forEach(function(a) {
-      var row = rows.eq(a.index);
-      row.appendTo(container);
-      newRows = newRows.add(row);
+      var row = rows[a.index];
+      container.append(row);
     });
 
-    stripe(newRows);
+    stripe(container.find('tr'));
   }