add the tx-tree-expanded CSS class to nodes that are marked as initially expanded #25

Merged
merged 1 commit into from Apr 2, 2011
@@ -186,6 +186,9 @@ Tapx.extendInitializer(function() {
function initializer(spec) {
var loaded = spec.expanded;
var expanded = spec.expanded;
+ if (expanded) {
+ $(spec.clientId).addClassName("tx-tree-expanded")
+ }
var loading = false;
function successHandler(reply) {