update Piwik to version 2.16 (fixes #91)
This commit is contained in:
parent
296343bf3b
commit
d885a4baa9
5833 changed files with 418860 additions and 226988 deletions
32
www/analytics/plugins/Morpheus/javascripts/layout.js
Normal file
32
www/analytics/plugins/Morpheus/javascripts/layout.js
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
/*!
|
||||
* Piwik - free/libre analytics platform
|
||||
*
|
||||
* @link http://piwik.org
|
||||
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
||||
*/
|
||||
|
||||
$(function () {
|
||||
var contentUser = $('#content.user');
|
||||
|
||||
function adjustSize(content)
|
||||
{
|
||||
var width = $('body').width() - content.offset().left - 10;
|
||||
content.css('width', width + 'px');
|
||||
}
|
||||
|
||||
if (contentUser.length) {
|
||||
adjustSize(contentUser);
|
||||
$(window).resize(function () {
|
||||
adjustSize(contentUser);
|
||||
});
|
||||
}
|
||||
|
||||
var contentAdmin = $('#content.admin');
|
||||
|
||||
if (contentAdmin.length) {
|
||||
adjustSize(contentAdmin);
|
||||
$(window).resize(function () {
|
||||
adjustSize(contentAdmin);
|
||||
});
|
||||
}
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue