From 5b6ae87f47b7a28c048a99097e2676563c52ce92 Mon Sep 17 00:00:00 2001 From: Wes Date: Fri, 18 Nov 2011 21:55:28 +0000 Subject: [PATCH] added drag-and-drop reordering of tree elements --- example/css/jquery.jOrgChart.css | 12 ++++ example/example.html | 7 +- example/jquery.jOrgChart.js | 114 ++++++++++++++++++++++++++----- jquery.jOrgChart.js | 114 ++++++++++++++++++++++++++----- readme.markdown | 6 +- 5 files changed, 219 insertions(+), 34 deletions(-) diff --git a/example/css/jquery.jOrgChart.css b/example/css/jquery.jOrgChart.css index 4036a2c..f5c62ac 100644 --- a/example/css/jquery.jOrgChart.css +++ b/example/css/jquery.jOrgChart.css @@ -35,4 +35,16 @@ display : inline-block; width : 96px; height : 60px; + z-index : 10; +} + +/* jQuery drag 'n drop */ + +.drag-active { + border-style : dotted !important; +} + +.drop-hover { + border-style : solid !important; + border-color : #E05E00 !important; } diff --git a/example/example.html b/example/example.html index c6d51a7..b22dd7f 100644 --- a/example/example.html +++ b/example/example.html @@ -7,13 +7,18 @@ + + + +