Using .hasClass()
authorMagnus Kühn <magnus.khn@gmail.com>
Mon, 11 Feb 2013 16:18:37 +0000 (17:18 +0100)
committerMagnus Kühn <magnus.khn@gmail.com>
Mon, 11 Feb 2013 16:18:37 +0000 (17:18 +0100)
wcfsetup/install/files/js/WCF.js

index 01af22653873fe98df0a78d4ed1e05411fea4555..676051a5cb3faf70a2f92997497b235004ac0e26 100755 (executable)
@@ -1723,7 +1723,7 @@ WCF.Action.Delete = Class.extend({
         */
        _updateIcon: function($target) {
                $target.find('.icon').removeClass('icon-remove').addClass('icon-spinner');
-               if ($target.is('.icon')) {
+               if ($target.hasClass('icon')) {
                        $target.removeClass('icon-remove').addClass('icon-spinner');
                }
        },