cleaned up the UI
authorRemixDev <deezloaderremix@gmail.com>
Sat, 5 Oct 2019 11:57:03 +0000 (13:57 +0200)
committerRemixDev <deezloaderremix@gmail.com>
Sat, 5 Oct 2019 11:57:03 +0000 (13:57 +0200)
app/public/js/frontend.js
app/views/index.ejs

index 6715bc8ef830da669224c660213c3f69feaa9993..28de62b5469fd363c96b3ef34170656ccc71da05 100644 (file)
@@ -139,7 +139,7 @@ socket.on("login", function (data) {
                        // Load personal public playlists
                        socket.emit("getMyPlaylistList", {spotifyUser: localStorage.getItem('spotifyUser')})
                        $('#logged_in_info').removeClass('hide')
-                       $('#login_email_btn').addClass('hide')
+                       $('#login_email_btn_container').addClass('hide')
                        $('#modal_login').modal("close")
                }
        }else{
@@ -179,7 +179,7 @@ $('#modal_settings_btn_logout').click(function () {
        $('#modal_login_input_password').val("")
        $('#modal_login_input_userToken').val("")
        $('#modal_login_input_captchaResponse').val("")
-       $('#login_email_btn').removeClass('hide')
+       $('#login_email_btn_container').removeClass('hide')
        $('#logged_in_info').addClass('hide')
        localStorage.removeItem("autologin")
        localStorage.removeItem("userToken")
index 08356b0c35eb9f04dd1607496cf51d5990b7826f..bec4fe36eab75de2180ec7febd4fe8cbac3074ed 100644 (file)
@@ -72,7 +72,7 @@
                                <p><%= __('You are logged in as')%> <b id="modal_settings_username"></b></p>
                                <a href="#" class="waves-effect waves-light btn" id="modal_settings_btn_logout"><%= __('Logout')%></a>
                        </div>
-                       <p class="col s12">
+                       <p class="col s12" id="login_email_btn_container">
                                <a href="#modal_login" class="modal-trigger waves-effect waves-light btn" id="login_email_btn" style="width:100%;"><%= __('Login with e-mail')%></a>
                        </p>
                        <h6 class="red-text" id="login-res-text2"></h6>