こんにちは、私はjstreeを使用し、同じページに複数のツリーを持っています。私は2つの問題があります:JsTree multitree cookie
1)どのツリーがどのノードが開いているかを区別するためにクッキーが必要です。私は、接頭辞を使用してこの機能を実装してみたが、残念ながら:のみ最後に開いたノードがリフレッシュした後再オープンしているので
"cookies" : { "cookie_options" : { "prefix" : "home" } },
は動作しません。
2)新しいルートノードを作成できないようにしたいのですが、私はファイルを作成したり、ルートディレクトリにファイルを転送したいだけです。
"types" : {
"types" : {
// The default type
"default" : {
"valid_children" : "none",
"icon" : {
"image" : "./file.png"
}
},
// The `folder` type
"folder" : {
"valid_children" : [ "default", "folder", "file" ],
"icon" : {
"image" : "./folder.png"
}
},
// The `drive` nodes
"drive" : {
// can have files and folders inside, but NOT other `drive` nodes
"valid_children" : [ "default", "folder" ],
"icon" : {
"image" : "./root.png"
},
// those prevent the functions with the same name to be used on `drive` nodes
// internally the `before` event is used
"start_drag" : false,
"move_node" : false,
"delete_node" : false,
"remove" : false
}
}
},
を私はまだ私のルートディレクトリにファイルを投稿することができています:
私が使用していることを達成しようとしています。ルートディレクトリの上にrel=drive
がない別の<li>
を作成する必要がありますか?
ありがとうございました。
広告1)私はクッキープラグインを使用する副作用だと思います... – Radek
あなたはそれを修正する方法を知っていますか?私はすでに第2のものを修正しました.. – glarkou
あなたは別の木のために複数のクッキーを取得できましたか?私は同じ問題を探しています! – andreapier