Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Steur <thomas.steur@gmail.com>2015-10-16 12:54:43 +0300
committerThomas Steur <thomas.steur@gmail.com>2015-10-16 12:54:43 +0300
commit89aa4f8806bf53bfa8851ae6051e7f6f40fcbfbc (patch)
tree5d2c97e04056266c5310862a207b298f933c25e1 /plugins/Dashboard
parentaf314323c9739ef0d6df3a621bb5bb2c645ca8a3 (diff)
fix more ui tests
Diffstat (limited to 'plugins/Dashboard')
-rw-r--r--plugins/Dashboard/angularjs/dashboard/dashboard.directive.js5
-rw-r--r--plugins/Dashboard/javascripts/dashboardObject.js4
2 files changed, 5 insertions, 4 deletions
diff --git a/plugins/Dashboard/angularjs/dashboard/dashboard.directive.js b/plugins/Dashboard/angularjs/dashboard/dashboard.directive.js
index b9db49f4b3..9af79047f7 100644
--- a/plugins/Dashboard/angularjs/dashboard/dashboard.directive.js
+++ b/plugins/Dashboard/angularjs/dashboard/dashboard.directive.js
@@ -20,10 +20,11 @@
$('.dashboardSettings').show();
initTopControls();
- // Embed dashboard
+ // Embed dashboard / exported as widget
if (!$('#topBars').length) {
$('.dashboardSettings').after($('#Dashboard'));
- $('#Dashboard_embeddedIndex_' + dashboardId).addClass('sfHover');
+ $('#Dashboard ul li').removeClass('active');
+ $('#Dashboard_embeddedIndex_' + dashboardId).addClass('active');
}
widgetsHelper.getAvailableWidgets();
diff --git a/plugins/Dashboard/javascripts/dashboardObject.js b/plugins/Dashboard/javascripts/dashboardObject.js
index beb590c4f6..457fc67f7a 100644
--- a/plugins/Dashboard/javascripts/dashboardObject.js
+++ b/plugins/Dashboard/javascripts/dashboardObject.js
@@ -536,11 +536,11 @@
var idDashboard = $(this).attr('data-idDashboard');
- $('#Dashboard ul li').removeClass('sfHover');
+ $('#Dashboard ul li').removeClass('active');
methods.loadDashboard.apply(_self, [idDashboard]);
- $(this).closest('li').addClass('sfHover');
+ $(this).closest('li').addClass('active');
});
};