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:
authorsgiehl <stefan@piwik.org>2016-07-12 23:08:14 +0300
committersgiehl <stefan@piwik.org>2016-07-15 00:10:16 +0300
commit96f289b0a679b36867e4b5a5b7fed70b8132a2a6 (patch)
treec7f37a2cabcc83bd11e6e8b1e89cea1ae4550a61 /plugins/SegmentEditor/javascripts
parentad9a0c3d6eb7a901f2454663de54c953a89d72d5 (diff)
use better message depending of the availability of archiving triggered by browser
Diffstat (limited to 'plugins/SegmentEditor/javascripts')
-rw-r--r--plugins/SegmentEditor/javascripts/Segmentation.js12
1 files changed, 11 insertions, 1 deletions
diff --git a/plugins/SegmentEditor/javascripts/Segmentation.js b/plugins/SegmentEditor/javascripts/Segmentation.js
index 74b44fa089..609368def7 100644
--- a/plugins/SegmentEditor/javascripts/Segmentation.js
+++ b/plugins/SegmentEditor/javascripts/Segmentation.js
@@ -1077,7 +1077,17 @@ Segmentation = (function($) {
});
if(segmentStr != getSegmentFromId(segmentId).definition) {
- piwikHelper.modalConfirm(self.target.find('.segment-definition-change-confirm'), {
+ var segmentProcessedOnRequest = $('.segment-definition-change-confirm').data('segmentProcessedOnRequest');
+
+ $('.process-on-request, .no-process-on-request').hide();
+
+ if (segmentProcessedOnRequest == 1 && autoArchive == 0) {
+ $('.process-on-request').show();
+ } else {
+ $('.no-process-on-request').show();
+ }
+
+ piwikHelper.modalConfirm('.segment-definition-change-confirm', {
yes: function () {
self.updateMethod(params);
}