]> CRI, Mines Paris - PSL - MosaicDocument.git/commitdiff
Youpi : conservation de l'état de l'arborescence, même dans le cas du repliement. master
authorBenoît Pin <benoit.pin@gmail.com>
Wed, 24 Nov 2010 23:22:28 +0000 (00:22 +0100)
committerBenoît Pin <benoit.pin@gmail.com>
Wed, 24 Nov 2010 23:22:28 +0000 (00:22 +0100)
default_blocks/tree_block_script.js

index cd0114c99968b83ffcc001eba416e396009345e5..cda2925cb91beff15c3f5af855a019367b6ba485 100644 (file)
@@ -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);