From: Luzifr Date: Tue, 20 Dec 2011 13:35:25 +0000 (+0100) Subject: One more change for the dropdowns X-Git-Tag: 2.0.0_Beta_1~1502 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b1161894c0222738ffda747c19b36006fbc12ecd;p=GitHub%2FWoltLab%2FWCF.git One more change for the dropdowns --- 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'); }); },