blob: 62ce3ceccadf998982ef29a175b59952ac4b1a79 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
/*!
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/
function initTopControls() {
var $topControlsContainer = $('.top_controls'),
left = 0;
if ($topControlsContainer.length) {
$('.piwikTopControl').each(function () {
var $control = $(this);
if ($control.css('display') == 'none') {
return;
}
$control.css('left', left);
if (!$.contains($topControlsContainer[0], this)) {
$control.detach().appendTo($topControlsContainer);
}
left += $control.outerWidth(true);
});
}
}
|