title: ElFinder - disable drag and drop for directories
body: <p>Does anyone know how to disable drag and drop functionality for ElFinder 2.x? As far as I know this is not controllable through initialization parameters (feel free to double check this), but we've removed some code in tree.js that took care of drag and drop for files:</p>
  
  <p>From tree.js:</p>
  
  <pre><code>/**
           * Navigation tree
           *
           * @type JQuery
           */
          tree = $(this).addClass(treeclass)
              // make dirs draggable and toggle hover class
  
              /* DISABLE DRAGGABLE
              .delegate('.'+navdir, 'hover', function(e) {
                  var link  = $(this), 
                      enter = e.type == 'mouseenter';
  
                  if (!link.is('.'+dropover+' ,.'+disabled)) {
                      enter &amp;&amp; !link.is('.'+root+',.'+draggable+',.elfinder-na,.elfinder-wo') &amp;&amp; link.draggable(fm.draggable);
                      link.toggleClass(hover, enter);
                  }
              })*/
  
              // add/remove dropover css class
              .delegate('.'+navdir, 'dropover dropout drop', function(e) {
                  $(this)[e.type == 'dropover' ? 'addClass' : 'removeClass'](dropover+' '+hover);
              })
              // open dir or open subfolders in tree
              .delegate('.'+navdir, 'click', function(e) {
                  var link = $(
  
   ...... // rest of code ommitted
  </code></pre>
  
  <p>This disabled file drag and drop, but not folders. To do that I commented out another delegate in cwd.js, but that ruined the double click event to open a folder - so I am now working on that problem. If anyone has a better solution, feel free to share.</p>
  
  <p>Comment out the following around line 670 in cwd.js:</p>
  
  <pre><code>.delegate(fileSelector, 'mouseenter.'+fm.namespace, function(e) {
              var $this = $(this),
              target = list ? $this : $this.children();
  
              if (!$this.is('.'+clTmp) &amp;&amp; !target.is('.'+clDraggable+',.'+clDisabled)) {
              target.draggable(fm.draggable); 
              }
              })
  </code></pre>