Commit Graph

22 Commits (my-master)

Author SHA1 Message Date
Guillaume DOTT 73c54de383 Add an option to ignore space used by collapsed nodes 2013-02-04 17:09:10 +01:00
Guillaume DOTT 4b6a366c8e Add support for graph with multiple nodes on the first level
Every nodes from the first level will be drawn without a parent
on the first line of the graph with a list like :
<ul>
  <li>First</li>
  <li>Second
    <ul>
      <li>Sublevel</li>
    </ul>
  </li>
</ul>
2013-01-18 11:07:10 +01:00
Wes c8b7864250 Bug fixes: 1. Removed the unnecessary assignment of a style class to nodes. 2. li elements who have a class of 'collapsed' are now working correctly and the nodes that represent them maintain the correct state across drag-n-drop 2012-05-07 13:38:37 +01:00
Wes cb137b535e Merge pull request #21 from fschaefer/patch-1
Fix globally exposed variables.
2012-05-07 05:03:22 -07:00
Florian Schäfer 5ad2511c3b Fix globally exposed variables. 2012-05-07 13:31:15 +03:00
Jonathon Smith b034e9900d Changed node find method from data- attributes to jquery data()
This maintains validation on pre-HTML5 documents
2012-04-06 01:25:24 +01:00
Jonathon Smith f1432f80d2 Improved the way nodes without IDs are handled using data- attributes instead of searching on html/plain text 2012-03-24 14:16:51 +00:00
Wes ddfc594332 changed license. Now dual licensed under MIT and GPL. 2012-03-16 17:48:47 +00:00
Wes 83fddcac19 issue #8: clicking links inside nodes doesn't collapse nodes now. 2012-03-16 14:38:28 +00:00
Wes fb6808bd07 collapsing parts of the tree doesn't make sibling trees move 2012-03-16 14:14:54 +00:00
Wes 9763085df2 Neaten comment header. Copied merged changes through to example code. Updated example code to demonstrate new functionality. 2012-02-28 09:28:18 +00:00
ahzgdn 1242eff76e Change to work with IDs and non-id trees 2012-02-22 08:49:10 +01:00
Sumh ed4d5731f6 Don't shift the sibling tree when toggle sub tree
Sumh <42424861@qq.com>
2012-02-04 16:33:00 +08:00
Neil Bowers 7a3ea355aa Fixed cursor bug, where you'd end up getting the wrong expand/close cursor on parent nodes.
Also stopped the click handler being installed on nodes which don't have any children.
And cursor set correctly if you start a sub-tree collapsed, with <li class=collapsed>
2012-01-23 12:28:58 +00:00
Neil Bowers 4b6b66a8ab Any classes you add to the <li> elements now get propagated to the node <div> elements 2012-01-20 13:37:41 +00:00
Neil Bowers 44a9b74d06 Added mechanism for starting off sub-trees collapsed 2012-01-19 15:48:19 +00:00
Neil Bowers 97bbe6e0b0 fix for IE7: horizontal lines don't appear unless you put a non-breaking space inside the relevant TD elements.
Still works fine on Safari, Chrome, IE8&9, Firefox, and Camino
2012-01-19 15:15:26 +00:00
Wes b39c765332 changed the way drag and drop events are binding to nodes to fix an issue in recent versions of FF. Also cleaned out some dead code 2011-12-02 13:41:02 +00:00
Wes c9111adf23 removed bug in dragndrop where nodes with html were pushing null/partial content 2011-11-19 14:19:41 +00:00
Wes 5b6ae87f47 added drag-and-drop reordering of tree elements 2011-11-18 21:55:28 +00:00
Wes 19fb180d50 moved updated orgchart lib from example to / 2011-11-12 12:17:05 +00:00
Wes 6658952474 Initial commit 2011-11-11 17:51:44 +00:00