Fixed tabs having scrollbar on startup
authorRemixDev <deezloaderremix@gmail.com>
Sat, 5 Oct 2019 12:10:18 +0000 (14:10 +0200)
committerRemixDev <deezloaderremix@gmail.com>
Sat, 5 Oct 2019 12:10:18 +0000 (14:10 +0200)
app/public/js/frontend.js

index 28de62b5469fd363c96b3ef34170656ccc71da05..8de9bd4c277ece0e282d62f1c911715ed5bc6001 100644 (file)
@@ -207,6 +207,7 @@ $('#modal_tags_replayGain').on('click', function() {
 // Do misc stuff on page load
 $(document).ready(function () {
        // Page Initializing
+       $("main.container").css('display', 'block')
        M.AutoInit()
        preview_track.volume = 0
        var tabs = M.Tabs.getInstance(document.getElementById("tab-nav"))
@@ -219,7 +220,6 @@ $(document).ready(function () {
        socket.emit("getUserSettings")
        socket.emit("getChartsCountryList", {selected: chartCountry})
        socket.emit("getChartsTrackListByCountry", {country: chartCountry})
-       $("main.container").css('display', 'block')
        $("main.container").addClass('animated fadeIn').on('webkitAnimationEnd', function () {
                $(this).removeClass('animated fadeOut')
        })