Options are now only visually disabled
authorAlexander Ebert <ebert@woltlab.com>
Wed, 21 Nov 2012 13:07:04 +0000 (14:07 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 21 Nov 2012 13:07:04 +0000 (14:07 +0100)
wcfsetup/install/files/acp/js/WCF.ACP.js

index 1e5e9698dc7b1619cd195e95092df720546afcb6..8868861c5672e1842eb17d0da8328baff9aac887 100644 (file)
@@ -727,10 +727,10 @@ WCF.ACP.Options = Class.extend({
                                var $target = disableOptions[$i];
                                if ($.wcfIsset($target)) {
                                        if (isActive) {
-                                               $('#' + $.wcfEscapeID($target)).disable().closest('dl').addClass('disabled');
+                                               $('#' + $.wcfEscapeID($target)).closest('dl').addClass('disabled');
                                        }
                                        else {
-                                               $('#' + $.wcfEscapeID($target)).enable().closest('dl').removeClass('disabled');
+                                               $('#' + $.wcfEscapeID($target)).closest('dl').removeClass('disabled');
                                        }
                                }
                        }
@@ -741,10 +741,10 @@ WCF.ACP.Options = Class.extend({
                                var $target = enableOptions[$i];
                                if ($.wcfIsset($target)) {
                                        if (isActive) {
-                                               $('#' + $.wcfEscapeID($target)).enable().closest('dl').removeClass('disabled');
+                                               $('#' + $.wcfEscapeID($target)).closest('dl').removeClass('disabled');
                                        }
                                        else {
-                                               $('#' + $.wcfEscapeID($target)).disable().closest('dl').addClass('disabled');
+                                               $('#' + $.wcfEscapeID($target)).closest('dl').addClass('disabled');
                                        }
                                }
                        }