|
|
@ -565,7 +565,7 @@ define('admin/dashboard', [
|
|
|
|
function setupFullscreen() {
|
|
|
|
function setupFullscreen() {
|
|
|
|
const container = document.getElementById('analytics-panel');
|
|
|
|
const container = document.getElementById('analytics-panel');
|
|
|
|
const $container = $(container);
|
|
|
|
const $container = $(container);
|
|
|
|
const btn = $container.find('.fa-expand');
|
|
|
|
const btn = $container.find('#expand-analytics');
|
|
|
|
let fsMethod;
|
|
|
|
let fsMethod;
|
|
|
|
let exitMethod;
|
|
|
|
let exitMethod;
|
|
|
|
|
|
|
|
|
|
|
@ -584,7 +584,6 @@ define('admin/dashboard', [
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (fsMethod) {
|
|
|
|
if (fsMethod) {
|
|
|
|
btn.addClass('active');
|
|
|
|
|
|
|
|
btn.on('click', function () {
|
|
|
|
btn.on('click', function () {
|
|
|
|
if ($container.hasClass('fullscreen')) {
|
|
|
|
if ($container.hasClass('fullscreen')) {
|
|
|
|
document[exitMethod]();
|
|
|
|
document[exitMethod]();
|
|
|
|