Utilisation de l'id du nœud racine, plutôt que l'id de l'objet.
[MosaicDocument.git] / default_blocks / tree_block_script.js
index c057e28..228d405 100644 (file)
@@ -157,6 +157,7 @@ TreeMaker.prototype.importRows = function(req, parentRow) {
                if (row.getAttribute("state") == "-1") {
                        var stateLink = document.createElement("A");
                        stateLink.href = ".";
                if (row.getAttribute("state") == "-1") {
                        var stateLink = document.createElement("A");
                        stateLink.href = ".";
+                       stateLink.setAttribute("name", row.getAttribute("name"));
                        var stateImg = document.createElement("IMG");
                        stateImg.src = this.baseImgUrl + "pl.gif";
                        stateImg.border = "0";
                        var stateImg = document.createElement("IMG");
                        stateImg.src = this.baseImgUrl + "pl.gif";
                        stateImg.border = "0";