From: Marcel Werk Date: Mon, 22 Jun 2015 16:45:54 +0000 (+0200) Subject: Fixed auto-selection of parent categories on page load X-Git-Tag: 2.1.5~14 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=54e2ad491831eee43ba30368212ac35a9654c002;p=GitHub%2FWoltLab%2FWCF.git Fixed auto-selection of parent categories on page load --- 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;