update Piwik to version 2.16 (fixes #91)

This commit is contained in:
oliver 2016-04-10 18:55:57 +02:00
commit d885a4baa9
5833 changed files with 418860 additions and 226988 deletions

View file

@ -1,5 +1,5 @@
/**
* Piwik - Web Analytics
* Piwik - free/libre analytics platform
*
* Visitor profile popup control.
*
@ -15,7 +15,7 @@
/**
* DataTable UI class for jqPlot graph datatable visualizations.
*
*
* @constructor
*/
exports.VisitorLog = function (element) {
@ -24,12 +24,54 @@
$.extend(exports.VisitorLog.prototype, dataTablePrototype, {
handleColumnHighlighting: function () {
},
setFixWidthToMakeEllipsisWork: function () {
},
/**
* Initializes this class.
*/
init: function () {
dataTablePrototype.init.call(this);
$('.visitorLogIconWithDetails>img').each(function () {
$(this).tooltip({
items: 'img',
track: true,
show: false,
hide: false,
content: function () {
return $('<ul>').html($('ul', $(this).closest('.visitorLogIconWithDetails')).html());
},
tooltipClass: 'small',
open: function () {
tooltipIsOpened = true;
},
close: function () {
tooltipIsOpened = false;
}
});
});
$('.visitorLogTooltip').each(function () {
$(this).tooltip({
track: true,
show: false,
hide: false,
tooltipClass: 'small',
open: function () {
tooltipIsOpened = true;
},
close: function () {
tooltipIsOpened = false;
}
});
});
// Replace duplicated page views by a NX count instead of using too much vertical space
$("ol.visitorLog").each(function () {
var prevelement;
@ -44,7 +86,7 @@
if (repeat.length) {
repeat.html((parseInt(repeat.html()) + 1) + "x");
} else {
prevelement.append($("<em>2x</em>").attr({'class': 'repeat', 'title': _pk_translate('Live_PageRefreshed')}));
prevelement.find('>div').prepend($("<em>2x</em>").attr({'class': 'repeat', 'title': _pk_translate('Live_PageRefreshed')}));
}
$(this).hide();
} else {
@ -56,7 +98,7 @@
var tooltipIsOpened = false;
$('a', $this).on('focus', function () {
// see http://dev.piwik.org/trac/ticket/4099
// see https://github.com/piwik/piwik/issues/4099
if (tooltipIsOpened) {
$this.tooltip('close');
}
@ -86,4 +128,4 @@
}
});
})(jQuery, require);
})(jQuery, require);