Move tree loading spinner back to the right side of the tree link where it's supposed to be
Move tree loading spinner back to the right side of the tree link where it's supposed to be

file:a/js/tree.js -> file:b/js/tree.js
--- a/js/tree.js
+++ b/js/tree.js
@@ -73,7 +73,7 @@
 			img.attr('src', url + "images/tree-loader.gif");
 			img.attr('alt', GITPHP_RES_LOADING);
 			img.addClass('treeSpinner');
-			img.appendTo(cell);
+			row.find('a.treeLink').after(img);
 
 			$.get($(this).attr('href'), { o: 'js' },
 			function(data) {
@@ -110,7 +110,7 @@
 				row.after(subRows);
 
 				row.find('a.expander').text(expanded);
-				cell.children('img.treeSpinner').remove();
+				row.find('img.treeSpinner').remove();
 			});
 		}
 

comments