Make sure expand indicator is correct for trees not loaded yet
Make sure expand indicator is correct for trees not loaded yet

file:a/js/tree.js -> file:b/js/tree.js
--- a/js/tree.js
+++ b/js/tree.js
@@ -40,7 +40,10 @@
 				row.find('td.expander').text(collapsed);
 			} else {
 				treeRows.show();
-				treeRows.find('td.expander').text(expanded);
+				treeRows.find('td.expander').each(function() {
+					if ($(this).data('loaded'))
+						$(this).text(expanded);
+				});
 				row.find('td.expander').text(expanded);
 			}
 		} else {
@@ -76,6 +79,7 @@
 				row.after(subRows);
 
 				row.find('td.expander').text(expanded);
+				row.find('td.expander').data('loaded', true);
 				cell.children('img.treeSpinner').remove();
 			});
 		}

comments