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:
authorMatthieu Aubry <mattab@users.noreply.github.com>2016-12-06 15:19:48 +0300
committerGitHub <noreply@github.com>2016-12-06 15:19:48 +0300
commitb1c09fa5123155ab9cd79342a4a0cef42e80de7f (patch)
tree06541e0c5bd079a8904fb3d2f82bfaf9155bda46 /plugins/SegmentEditor/javascripts/Segmentation.js
parent46eafa8ab66d9d7bc785dc6697b8c3168c9d4145 (diff)
parentd96661e2bd8e54c1ef022cc88e95d133d3f6c615 (diff)
Merge pull request #10974 from piwik/3.x-dev3.0.0-rc1
Release Piwik 3.0.0-rc1
Diffstat (limited to 'plugins/SegmentEditor/javascripts/Segmentation.js')
-rw-r--r--plugins/SegmentEditor/javascripts/Segmentation.js23
1 files changed, 1 insertions, 22 deletions
diff --git a/plugins/SegmentEditor/javascripts/Segmentation.js b/plugins/SegmentEditor/javascripts/Segmentation.js
index 28280a1a5d..7930ae8c0e 100644
--- a/plugins/SegmentEditor/javascripts/Segmentation.js
+++ b/plugins/SegmentEditor/javascripts/Segmentation.js
@@ -1278,28 +1278,7 @@ $(document).ready(function() {
segmentDefinition = cleanupSegmentDefinition(segmentDefinition);
segmentDefinition = encodeURIComponent(segmentDefinition);
- if (piwikHelper.isAngularRenderingThePage()) {
-
- angular.element(document).injector().invoke(function ($location, $rootScope) {
- var $search = $location.search();
-
- if (segmentDefinition !== $search.segment) {
- // eg when using back button the date might be actually already changed in the URL and we do not
- // want to change the URL again
- $search.segment = segmentDefinition.replace(/%$/, '%25').replace(/%([^\d].)/g, "%25$1");
- $location.search($search);
- setTimeout(function () {
- try {
- $rootScope.$apply();
- } catch (e) {}
- }, 1);
- }
-
- });
- return false;
- } else {
- return broadcast.propagateNewPage('segment=' + segmentDefinition, true);
- }
+ return broadcast.propagateNewPage('segment=' + segmentDefinition, true);
};
this.changeSegmentList = function () {};