From 9dcf11e223c5f8bce0931f94a5648e0020543c48 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 6 Mar 2012 00:14:39 +0100 Subject: [PATCH] Finally fixed sortables --- wcfsetup/install/files/acp/style/wcf.css | 9 +- .../install/files/acp/templates/header.tpl | 1 + .../js/3rdParty/jquery-ui.nestedSortable.js | 392 ++++++++++++++++++ wcfsetup/install/files/js/WCF.js | 21 +- 4 files changed, 420 insertions(+), 3 deletions(-) create mode 100644 wcfsetup/install/files/js/3rdParty/jquery-ui.nestedSortable.js diff --git a/wcfsetup/install/files/acp/style/wcf.css b/wcfsetup/install/files/acp/style/wcf.css index e032db4d75..d2b36bd482 100644 --- a/wcfsetup/install/files/acp/style/wcf.css +++ b/wcfsetup/install/files/acp/style/wcf.css @@ -4431,17 +4431,24 @@ button[disabled='disabled'] { padding: 4px; } +/* TODO: This was taken from badgeRed and is used to indicate a list which is not a valid drop target */ +.wcf-badgeYellow.wcf-sortableInvalidTarget { + color: #c00; + border: 1px solid #f99; + background-color: #fee; +} + .wcf-sortableListContainer { border-radius: 0; background-color: rgba(252, 253, 254, 1); padding: 21px; } +/* Notice: min-height was safely removed */ .wcf-sortableList { list-style-position: outside; list-style-type: decimal; margin-left: 21px; - min-height: 10px; /* Do not touch min-height, removing or changing it would break the whole stuff! - Alex */ } .wcf-sortableNode { diff --git a/wcfsetup/install/files/acp/templates/header.tpl b/wcfsetup/install/files/acp/templates/header.tpl index 794e8d7ae3..915fe8bb6c 100644 --- a/wcfsetup/install/files/acp/templates/header.tpl +++ b/wcfsetup/install/files/acp/templates/header.tpl @@ -17,6 +17,7 @@ +