From 2f782339675c57009535e4c4369b3aa4b241133b Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 24 Jan 2014 15:59:38 +0100 Subject: [PATCH] Fixed unmarking of clipboard items --- wcfsetup/install/files/js/WCF.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 451718181c..bd7107723c 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -1581,15 +1581,15 @@ WCF.Clipboard = { type: $typeName }); this._proxy.setOption('success', $.proxy(function(data, textStatus, jqXHR) { - for (var $__containerID in this._containers) { - var $__container = $(this._containers[$__containerID]); - if ($__container.data('type') == $typeName) { - $__container.find('.jsClipboardMarkAll, .jsClipboardItem').prop('checked', false); - $__container.find('.jsClipboardObject').removeClass('jsMarked'); + this._containers.each($.proxy(function(index, container) { + var $container = $(container); + if ($container.data('type') == $typeName) { + $container.find('.jsClipboardMarkAll, .jsClipboardItem').prop('checked', false); + $container.find('.jsClipboardObject').removeClass('jsMarked'); - break; + return false; } - } + }, this)); // call and restore success method this._success(data, textStatus, jqXHR); -- 2.20.1