From e1c8c0ad3bb40bd1f4cffde333fca8f965b4ec77 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Wed, 6 Aug 2014 18:16:20 +0200 Subject: [PATCH] Fix setting page controller after ad location selection --- wcfsetup/install/files/acp/js/WCF.ACP.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/acp/js/WCF.ACP.js b/wcfsetup/install/files/acp/js/WCF.ACP.js index cbb902846c..901fac0636 100644 --- a/wcfsetup/install/files/acp/js/WCF.ACP.js +++ b/wcfsetup/install/files/acp/js/WCF.ACP.js @@ -2669,7 +2669,7 @@ WCF.ACP.Ad.LocationHandler = Class.extend({ // check if the selected ad location is bound to a specific page if ($option.data('page')) { // select the related page - this._pageControllers.val([this._pageControllers.children('option[data-object-type="' + $option.data('page') + '"]').val()]).change(); + this._pageControllers.val([this._pageControllers.find('option[data-object-type="' + $option.data('page') + '"]').val()]).change(); } else { this._pageControllers.val([]).change(); -- 2.20.1