Skip to content
This repository has been archived by the owner on Sep 16, 2021. It is now read-only.

optionally add a switch to enable/disable drag and drop #24

Open
lsmith77 opened this issue Jan 29, 2013 · 4 comments
Open

optionally add a switch to enable/disable drag and drop #24

lsmith77 opened this issue Jan 29, 2013 · 4 comments

Comments

@lsmith77
Copy link
Member

since accidentally moving nodes around the tree can break a lot of things and because it might not be obvious how to restore (note: we could offer an undo) it might be good to offer an optional switch to enable/disable move mode

@nicolas-bastien
Copy link
Member

Hi, you can to that with :

<script type="text/javascript">
$(document).ready(function() {
    $('#tree').unbind('move_node.jstree');
});
</script>

@lsmith77
Copy link
Member Author

imho it would be nice to provide such a toggle button (optionally) out of the box

@nicolas-bastien
Copy link
Member

Yes I agree with you but maybe it can help somebody waiting on this issue...

@dbu
Copy link
Member

dbu commented Mar 12, 2013

sure, and it will help the person who implements this ticket too. thanks for sharing the snippet, @nicolas-bastien

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants