X-Git-Url: https://scm.cri.mines-paristech.fr/git/MosaicDocument.git/blobdiff_plain/4eff9af578856f91276dbd2ab353f9bdb5e190b3..212fdab6c913532b7776f6c5670b2c7598e0df86:/default_blocks/tree_block_script.js?ds=inline 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);