From 4ccdf8aa8e37bbb77695c46fb67a4aeae9f2c59b Mon Sep 17 00:00:00 2001 From: Kristof Jochmans Date: Tue, 29 Jul 2014 13:02:45 +0200 Subject: [PATCH] fix dashboard configuration page --- Controller/GoogleAnalyticsController.php | 2 ++ Resources/public/js/setup/setup.js | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Controller/GoogleAnalyticsController.php b/Controller/GoogleAnalyticsController.php index b30deabf..4e27c8b9 100755 --- a/Controller/GoogleAnalyticsController.php +++ b/Controller/GoogleAnalyticsController.php @@ -131,6 +131,8 @@ public function configAction(Request $request) $params['accountId'] = $config->getAccountId(); $params['propertyId'] = 0; $params['profileId'] = 0; + $params['properties'] = array(); + $params['profiles'] = array(); if ($params['accountId']) { $params['propertyId'] = $config->getPropertyId(); diff --git a/Resources/public/js/setup/setup.js b/Resources/public/js/setup/setup.js index 5fc8be89..c9ee7540 100644 --- a/Resources/public/js/setup/setup.js +++ b/Resources/public/js/setup/setup.js @@ -54,10 +54,12 @@ $(function () { }); function triggerUpdate() { + $('#accounts select').trigger('chosen:updated'); + $('#properties select').trigger('chosen:updated'); + $('#profiles select').trigger('chosen:updated'); $('#accounts select').trigger('liszt:updated'); $('#properties select').trigger('liszt:updated'); $('#profiles select').trigger('liszt:updated'); - } /* =============================== ACCOUNTS =============================== */