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

github.com/sualko/cloud_piwik.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--js/settings/admin.js2
-rw-r--r--templates/settings/admin.php1
2 files changed, 3 insertions, 0 deletions
diff --git a/js/settings/admin.js b/js/settings/admin.js
index cf5c94f..6a577e7 100644
--- a/js/settings/admin.js
+++ b/js/settings/admin.js
@@ -1,6 +1,8 @@
/* global OCP, OC */
$(function() {
+ $('#piwikAdblockerWarning').hide();
+
function showRequestResult(element, result) {
if (element.attr('type') === 'checkbox') {
element = $('label[for="' + element.attr('id') + '"]');
diff --git a/templates/settings/admin.php b/templates/settings/admin.php
index ed4ec9e..023834f 100644
--- a/templates/settings/admin.php
+++ b/templates/settings/admin.php
@@ -6,6 +6,7 @@ style('piwik', 'settings');
<div id="piwikSettings" class="section">
<h2>Piwik/Matomo Tracking</h2>
<p class="settings-hint">If you have no Piwik/Matomo instance, go to <a href="https://matomo.org" target="_blank">matomo.org</a> for further instructions.</p>
+ <p id="piwikAdblockerWarning" style="border-left:2px red solid;padding-left:1em">It seems that you use a content blocker plugin in your browser to stop trackers like Matomo. Unfortunately, your plugin also breaks this settings form, so you might want to disable the content blocker for your NextCloud.</p>
<form>
<table>