From 54e2ad491831eee43ba30368212ac35a9654c002 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Mon, 22 Jun 2015 18:45:54 +0200 Subject: [PATCH] Fixed auto-selection of parent categories on page load --- wcfsetup/install/files/js/WCF.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 51997a3abf..5784331371 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -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; -- 2.20.1