fix: use btn instead of icon

isekai-main
Barış Soner Uşaklı 2 years ago
parent 354c2aebc5
commit aefef763db

@ -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]();

@ -5,7 +5,7 @@
<div class="d-flex gap-1"> <div class="d-flex gap-1">
<a class="btn btn-sm btn-light lh-sm" target="_blank" id="view-as-json" href="{config.relative_path}/api/v3/admin/analytics/{set}?type=hourly"><i class="fa fa-fw fa-xs fa-terminal text-primary"></i></a> <a class="btn btn-sm btn-light lh-sm" target="_blank" id="view-as-json" href="{config.relative_path}/api/v3/admin/analytics/{set}?type=hourly"><i class="fa fa-fw fa-xs fa-terminal text-primary"></i></a>
<a class="btn btn-sm btn-light lh-sm" href="#"><i class="fa fa-fw fa-xs fa-expand text-primary"></i></a> <a class="btn btn-sm btn-light lh-sm" id="expand-analytics" href="#"><i class="fa fa-fw fa-xs fa-expand text-primary"></i></a>
</div> </div>
</div> </div>
</div> </div>

Loading…
Cancel
Save