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 <tsteur@users.noreply.github.com>2020-02-12 11:02:33 +0300
committerGitHub <noreply@github.com>2020-02-12 11:02:33 +0300
commit924c9e19a1caaf46b8d29a431c14379579aa547b (patch)
treeb6612a00b02ee9a3d6a704bac8cda40f18f7c5b7 /plugins/SegmentEditor
parentb07e8cf272e4cf7d8926eca43851ded78214a192 (diff)
Empty auto complete results in segment editor when changing the segment (#15556)
Avoids seeing results from previous segment while the new list of suggestion is not loaded yet
Diffstat (limited to 'plugins/SegmentEditor')
-rw-r--r--plugins/SegmentEditor/angularjs/segment-generator/segmentgenerator.controller.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/plugins/SegmentEditor/angularjs/segment-generator/segmentgenerator.controller.js b/plugins/SegmentEditor/angularjs/segment-generator/segmentgenerator.controller.js
index 967cd12a52..033fe45124 100644
--- a/plugins/SegmentEditor/angularjs/segment-generator/segmentgenerator.controller.js
+++ b/plugins/SegmentEditor/angularjs/segment-generator/segmentgenerator.controller.js
@@ -149,7 +149,13 @@
orCondition.isLoading = true;
this.updateSegmentDefinition();
-
+
+ var inputElement = $('.orCondId' + orCondition.id + " .metricValueBlock input");
+ inputElement.autocomplete({
+ source: [],
+ minLength: 0
+ });
+
var resolved = false;
var promise = piwikApi.fetch({