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:
Diffstat (limited to 'plugins/CoreHome/angularjs/content-block/content-block.directive.js')
-rw-r--r--plugins/CoreHome/angularjs/content-block/content-block.directive.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/CoreHome/angularjs/content-block/content-block.directive.js b/plugins/CoreHome/angularjs/content-block/content-block.directive.js
index 852e74015d..d0955526ad 100644
--- a/plugins/CoreHome/angularjs/content-block/content-block.directive.js
+++ b/plugins/CoreHome/angularjs/content-block/content-block.directive.js
@@ -38,7 +38,7 @@
return function (scope, element, attrs) {
var inlineHelp = element.find('[ng-transclude] > .contentHelp');
- if (inlineHelp.size()) {
+ if (inlineHelp.length) {
scope.helpText = inlineHelp.html();
inlineHelp.remove();
}
@@ -54,14 +54,14 @@
var contentTopPosition = false;
- if (adminContent.size()) {
+ if (adminContent.length) {
contentTopPosition = adminContent.offset().top;
}
if (contentTopPosition || contentTopPosition === 0) {
var parents = element.parentsUntil('.col', '[piwik-widget-loader]');
var topThis;
- if (parents.size()) {
+ if (parents.length) {
// when shown within the widget loader, we need to get the offset of that element
// as the widget loader might be still shown. Would otherwise not position correctly
// the widgets on the admin home page