From 212fdab6c913532b7776f6c5670b2c7598e0df86 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Beno=C3=AEt=20Pin?= Date: Thu, 25 Nov 2010 00:22:28 +0100 Subject: [PATCH 1/1] =?utf8?q?Youpi=20:=20conservation=20de=20l'=C3=A9tat?= =?utf8?q?=20de=20l'arborescence,=20m=C3=AAme=20dans=20le=20cas=20du=20rep?= =?utf8?q?liement.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- default_blocks/tree_block_script.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/default_blocks/tree_block_script.js b/default_blocks/tree_block_script.js index cd0114c..cda2925 100644 --- a/default_blocks/tree_block_script.js +++ b/default_blocks/tree_block_script.js @@ -82,6 +82,8 @@ TreeMaker.prototype.refreshTree = function (evt) { this._lastAniImg = target; var tm = this; window.setTimeout(function(){tm._removeLastAniImg();}, 500); + document.cookie = encodeURIComponent(this.root.id) + '-state=' + encodeURIComponent(this.getExpansion()) + + ';path=/'; break; } // end switch (imgId) disableDefault(evt); -- 2.20.1