diff options
author | diosmosis <benaka@piwik.pro> | 2014-09-12 01:34:59 +0400 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2014-09-12 01:34:59 +0400 |
commit | c570f75cfd9a8c4fb8849e4b1a642594e7db50d9 (patch) | |
tree | 39dee174633848fa3ce2613aa79c6e00e3109721 /plugins | |
parent | 48a5bac65d1a247d4137d52a1b03f6560d5ad7fa (diff) |
Toggle 'expanded' class on site selector when expanded in order to overcome z-index issue when multiple site slectors are displayed on top of each other.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/CoreHome/angularjs/siteselector/siteselector-directive.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/CoreHome/angularjs/siteselector/siteselector-directive.js b/plugins/CoreHome/angularjs/siteselector/siteselector-directive.js index 7936cbfc96..2f76b86d55 100644 --- a/plugins/CoreHome/angularjs/siteselector/siteselector-directive.js +++ b/plugins/CoreHome/angularjs/siteselector/siteselector-directive.js @@ -80,6 +80,10 @@ angular.module('piwikApp').directive('piwikSiteselector', function($document, pi } }); + scope.$watch('view.showSitesList', function (newValue) { + element.toggleClass('expanded', !! newValue); + }); + /** use observe to monitor attribute changes attrs.$observe('maxsitenamewidth', function(val) { // for instance trigger a function or whatever |