summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-12-19 10:58:35 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-12-19 10:58:35 +0000
commitff6ce75f7b41eb8806b679d3901f7ac6cee8a6e8 (patch)
tree82358bdfc86a72b9fd78c5d4dfed986cf8280b5d /includes
parentd17b6ad1cf85a4a91ef8fff186d96ff9c8cdd950 (diff)
downloadbrdo-ff6ce75f7b41eb8806b679d3901f7ac6cee8a6e8.tar.gz
brdo-ff6ce75f7b41eb8806b679d3901f7ac6cee8a6e8.tar.bz2
#200370 by quicksketch: fixes to drag and drop support to make it usable by CCK
Diffstat (limited to 'includes')
-rw-r--r--includes/common.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/includes/common.inc b/includes/common.inc
index 353010634..81d350452 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -2101,6 +2101,11 @@ function drupal_get_js($scope = 'header', $javascript = NULL) {
* );
* @endcode
*
+ * When tree relationships are present, the two additional classes
+ * 'tabledrag-leaf' and 'tabledrag-root' can be used to refine the behavior:
+ * - Rows with the 'tabledrag-leaf' class cannot have child rows.
+ * - Rows with the 'tabledrag-root' class cannot be nested under a parent row.
+ *
* Calling drupal_add_tabledrag() would then be written as such:
* @code
* drupal_add_tabledrag('my-module-table', 'order', 'sibling', 'my-elements-weight');