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
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
@ -20,11 +20,11 @@ var Piwik_Popover = (function () {
var openPopover = function (title, dialogClass) {
createContainer();
var options =
var options =
{
title: title,
modal: true,
width: '950px',
width: '1050px',
position: ['center', 'center'],
resizable: false,
autoOpen: true,
@ -142,7 +142,17 @@ var Piwik_Popover = (function () {
/** Set the title of the popover */
setTitle: function (titleHtml) {
var titleText = piwikHelper.htmlDecode(titleHtml);
if (titleText.length > 60) {
titleHtml = $('<span>').attr('class', 'tooltip').attr('title', titleText).html(titleHtml);
}
container.dialog('option', 'title', titleHtml);
try {
$('.tooltip', container.parentNode).tooltip('destroy');
} catch (e) {}
if (titleText.length > 60) {
$('.tooltip', container.parentNode).tooltip({track: true, items: '.tooltip'});
}
},
/** Set inner HTML of the popover */
@ -209,11 +219,11 @@ var Piwik_Popover = (function () {
/**
* Create a Popover and load the specified URL in it.
*
*
* Note: If you want the popover to be persisted in the URL (so if the URL is copy/pasted
* to a new window/tab it will be opened there), use broadcast.propagateNewPopoverParameter
* with a popover handler function that calls this one.
*
*
* @param {string} url
* @param {string} loadingName
* @param {string} [dialogClass] css class to add to dialog