Merge pull request #335 from Gravatronics/enhancement/toggle/disabledClass
authorHarald Szekely <szekely@woltlab.com>
Mon, 16 Jan 2012 16:56:52 +0000 (08:56 -0800)
committerHarald Szekely <szekely@woltlab.com>
Mon, 16 Jan 2012 16:56:52 +0000 (08:56 -0800)
Adds disabled class toggle for JS toggle action

1  2 
wcfsetup/install/files/js/WCF.js

index 7be237809ffc14fc9ade4f3bd558c8d03434ab8f,b8c77539dc10c6b9c38528766e8fe5cc1159e731..c68ab00102048c2d9333298b5ffd569ed2442fcf
@@@ -1387,8 -1360,11 +1388,11 @@@ WCF.Action.Toggle.prototype = 
                                                return $(this).data('enableMessage');
                                        }
                                });
+                               
+                               // toggle css class
+                               $(container).toggleClass('disabled');
                        }
 -              });
 +              }, this));
        }
  };