Fixed deleting of containers in WCF.Action.Delete
authorMagnus Kühn <magnus.khn@gmail.com>
Sat, 5 Jan 2013 16:37:33 +0000 (17:37 +0100)
committerMagnus Kühn <magnus.khn@gmail.com>
Sat, 5 Jan 2013 16:37:33 +0000 (17:37 +0100)
wcfsetup/install/files/js/WCF.js

index f45fa2eaaa4a18676567876d3f9244336f828ce6..7e22e90c9b167ec7b67e056fca303f1d15316a0d 100755 (executable)
@@ -1811,7 +1811,7 @@ WCF.Action.Delete = Class.extend({
                for (var $index in this._containers) {
                        var $container = $('#' + this._containers[$index]);
                        if (WCF.inArray($container.find('.jsDeleteButton').data('objectID'), objectIDs)) {
-                               $container.wcfBlindOut('up', function() { $container.remove(); });
+                               $container.wcfBlindOut('up', function() { $(this).remove(); });
                        }
                }
        }