Fixed auto-selection of parent categories on page load
authorMarcel Werk <burntime@woltlab.com>
Mon, 22 Jun 2015 16:45:54 +0000 (18:45 +0200)
committerMarcel Werk <burntime@woltlab.com>
Mon, 22 Jun 2015 16:45:54 +0000 (18:45 +0200)
wcfsetup/install/files/js/WCF.js

index 51997a3abf1de07a4cf845c69e42aca1f250989f..578433137199a095167c300a6fa591ff3725f3ec 100755 (executable)
@@ -12250,6 +12250,10 @@ WCF.Category.FlexibleCategoryList = Class.extend({
                
                this._buildStructure();
                
+               this._list.find('input:checked').each(function() {
+                       $(this).trigger('change');
+               });
+               
                if (this._list.children('li').length < 2) {
                        this._list.addClass('flexibleCategoryListDisabled');
                        return;