views:

25

answers:

1

How to disable moving in jsTree 1.0, but not disabling dnd plugin?

Thanks.

A: 

I found the solution.

   $("#tree").jstree({
//...
      "crrm" : {
        "move" : {
          "check_move" : function (m) {
            return false;
          }
        }
      }
//...
      "plugins" : [ "crrm", "dnd" ]
    });
andser