PDF rausgenommen
This commit is contained in:
@ -0,0 +1,22 @@
|
||||
function submitForm(e, form) {
|
||||
if (e.preventDefault) { // IE8 and below do not support preventDefault
|
||||
e.preventDefault();
|
||||
}
|
||||
|
||||
var now = Date.now ? Date.now() : (+(new Date())), // Date.now does not exist in < IE8
|
||||
newWindow = window.open(form.action + '&time=' + now);
|
||||
|
||||
var interval = setInterval(function () {
|
||||
if (newWindow.closed) {
|
||||
window.location.reload();
|
||||
clearInterval(interval);
|
||||
}
|
||||
}, 1000);
|
||||
return false;
|
||||
}
|
||||
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
var trackVisitsCheckbox = document.getElementById('trackVisits');
|
||||
if (typeof trackVisitsCheckbox === "undefined") trackVisitsCheckbox.addEventListener('click', function(event) { submitForm(event, this.form); });
|
||||
});
|
||||
|
@ -0,0 +1,43 @@
|
||||
/*!
|
||||
* Piwik - free/libre analytics platform
|
||||
*
|
||||
* @link http://piwik.org
|
||||
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
||||
*/
|
||||
|
||||
$(document).ready(function () {
|
||||
|
||||
if (!piwik || !location.protocol) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!piwik.hasSuperUserAccess) {
|
||||
// we show a potential notification only to super users
|
||||
return;
|
||||
}
|
||||
|
||||
if (piwik.hasServerDetectedHttps) {
|
||||
// https was detected, not needed to show a message
|
||||
return;
|
||||
}
|
||||
|
||||
var isHttpsUsed = 0 === location.protocol.indexOf('https');
|
||||
|
||||
if (!isHttpsUsed) {
|
||||
// not using https anyway, we do not show a message
|
||||
return;
|
||||
}
|
||||
|
||||
var params = [
|
||||
'"config/config.ini.php"',
|
||||
'"assume_secure_protocol=1"',
|
||||
'"[General]"',
|
||||
'<a target="_blank" href="https://matomo.org/faq/how-to-install/faq_98/">',
|
||||
'</a>'
|
||||
];
|
||||
var message = _pk_translate('CoreAdminHome_ProtocolNotDetectedCorrectly') + " " + _pk_translate('CoreAdminHome_ProtocolNotDetectedCorrectlySolution', params);
|
||||
|
||||
var UI = require('piwik/UI');
|
||||
var notification = new UI.Notification();
|
||||
notification.show(message, {context: 'warning'});
|
||||
});
|
Reference in New Issue
Block a user