From 29860d7237e126b1d61d1458b90b4c50c4a7e768 Mon Sep 17 00:00:00 2001 From: mrilyew <99399973+mrilyew@users.noreply.github.com> Date: Thu, 5 Dec 2024 23:38:49 +0300 Subject: [PATCH] Stupid bugs fix --- Web/static/js/al_music.js | 3 +++ Web/static/js/al_wall.js | 1 + Web/static/js/router.js | 4 ++++ 3 files changed, 8 insertions(+) diff --git a/Web/static/js/al_music.js b/Web/static/js/al_music.js index a5bc8a6a..9632615d 100644 --- a/Web/static/js/al_music.js +++ b/Web/static/js/al_music.js @@ -205,6 +205,9 @@ window.player = new class { if(!this.context.object) { return } + if(this.context.playedPages.indexOf(page) != -1) { + return + } const form_data = new FormData switch(this.context.object.name) { diff --git a/Web/static/js/al_wall.js b/Web/static/js/al_wall.js index f0b26209..2c426130 100644 --- a/Web/static/js/al_wall.js +++ b/Web/static/js/al_wall.js @@ -2362,6 +2362,7 @@ async function __processPaginatorNextPage(page) if(window.player && window.player.isAtAudiosPage() && window.player.isAtCurrentContextPage()) { window.player.loadContext(page) + window.player.__highlightActiveTrack() } /*if(window.router) { diff --git a/Web/static/js/router.js b/Web/static/js/router.js index 666174c6..0bd7a5d6 100644 --- a/Web/static/js/router.js +++ b/Web/static/js/router.js @@ -91,6 +91,10 @@ window.router = new class { u('.page_header #search_box select').nodes[0].value = page_header.find('#search_box select').nodes[0].value } + if(u('.page_header #search_box input').length > 0 && page_header.find('#search_box input').length > 0) { + u('.page_header #search_box input').nodes[0].value = page_header.find('#search_box input').nodes[0].value + } + if(page_header.hasClass('search_expanded_at_all')) { u('.page_header').addClass('search_expanded_at_all').addClass('search_expanded') } else {