title: prevent jsTree node select
body: <p>I'm using the jsTree plugin to list folders in the file system. I need to prevent a user from changing to another node before a certain condition is met.<br>
  The below code does not stop the propagation... i saw some solutions with other plugins but this is a simple task it must be possible without other plugins.</p>
  
  <pre><code>$('#jstree').on('select_node.jstree', function (e) 
  {
      if (!changeAllowed()
      {
          e.preventDefault(); 
          e.stopImmediatePropagation();
      }
  }); 
  </code></pre>