From b1161894c0222738ffda747c19b36006fbc12ecd Mon Sep 17 00:00:00 2001 From: Luzifr Date: Tue, 20 Dec 2011 14:35:25 +0100 Subject: [PATCH] One more change for the dropdowns --- wcfsetup/install/files/js/WCF.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 3844ef0259..c10f04c126 100644 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -810,10 +810,10 @@ WCF.Clipboard = { } var $editor = data.items[$typeName]; - var $label = $('
  • ' + $editor.label + '
  • ').appendTo($list).click(function(event) { - $(event.target).next().toggleClass('open'); - }); - var $itemList = $('
      ').appendTo($label).hide(); + var $label = $('
    1. ' + $editor.label + '
    2. ').appendTo($list) + var $itemList = $('').appendTo($label); + + $label.click(function() { $itemList.toggleClass('open'); }); // create editor items for (var $itemIndex in $editor.items) { @@ -839,7 +839,7 @@ WCF.Clipboard = { _closeLists: function() { $('.clipboardEditor ul ol').each(function(index, list) { - $(this).hide(); + $(this).removeClass('open'); }); }, -- 2.20.1