Thanks Ivan!
When it will be commited?
Best regards
Janusz
On 9 Lip, 14:04, vakata <
ivan.bozha...@gmail.com> wrote:
> Sorry about that - for now all you can get is the previous node (which
> may also be theparent):
> data.rslt.prev
>
> Anyway - I added data.rslt.parentto both "delete_node" and "remove",
> but have not committed yet, so with the next commit you will be able
> to simply use data.rslt.parent.
>
> Kindest regards,
> Ivan
>
> On 9 Юли, 14:55, Janusz <
janusz.noszczyn...@gmail.com> wrote:
>
>
>
> > Thanks Ivan, it works!!
> > How do the same (accessparent) in delete_node.jstree handler
> > function?
>
> > Code below returns -1 value asparent
> > var parentNode = data.inst._get_parent(data.args[0]);
>
> > On 7 Lip, 18:59, vakata <
ivan.bozha...@gmail.com> wrote:
>
> > > Try data.rslt.op
>
> > > Kindest regards,
> > > Ivan
>
> > > On 7 Юли, 19:08,Janusz<
janusz.noszczyn...@gmail.com> wrote:
>
> > > > Hi,
>
> > > > I have code:
>
> > > > ...
> > > > .bind("move_node.jstree", OnMoveNode)
> > > > ...
>
> > > > function OnMoveNode(event, data)
> > > > {
> > > > var treeInstance = data.inst;
> > > > var node = data.rslt.o;
> > > > var parentNode = treeInstance._get_parent(node);
>
> > > > var oldParentNode = ??????
>
> > > > }
>
> > > > How can Iaccessoldparentof moving node?
>
> > > > Thanks in advance
> > > >Janusz- Ukryj cytowany tekst -
>
> > > - Pokaż cytowany tekst -- Ukryj cytowany tekst -