瀏覽代碼

donate button css fix / report songs unauthenticated

AkiraLaine 9 年之前
父節點
當前提交
116948ad88
共有 3 個文件被更改,包括 6 次插入7 次删除
  1. 5 5
      app/app.js
  2. 1 1
      app/templates/login.html
  3. 0 1
      app/templates/room.html

+ 5 - 5
app/app.js

@@ -146,9 +146,9 @@ if (Meteor.isClient) {
               window.location.href = "/";
             })
             Accounts.onLoginFailure(function(){
-                $("input").css("background-color","indianred");
-                $("input").on("click",function(){
-                    $("input").css({
+                $("#login-form input").css("background-color","indianred");
+                $("#login-form input").on("click",function(){
+                    $("#login-form input").css({
                       "-webkit-appearance": "none",
                       "   -moz-appearance": "none",
                       "        appearance": "none",
@@ -167,11 +167,11 @@ if (Meteor.isClient) {
                       "        transition-duration": "0.25s",
                       "font-weight": "300"
                     });
-                    $("input:focus").css({
+                    $("#login-form input:focus").css({
                       "width": "354px",
                       "color": "white"
                     })
-                    $("input").on("blur", function(){
+                    $("#login-form input").on("blur", function(){
                       $(this).css("width", "304px");
                     })
                 })

+ 1 - 1
app/templates/login.html

@@ -3,7 +3,7 @@
     {{> header}}
     <div class="container">
         <h1>Login</h1>
-        <form class="form">
+        <form class="form" id="login-form">
             <input type="text" autocorrect="off" name="loginUsername" placeholder="Enter your username" onfocus="this.placeholder = ''" onblur="this.placeholder='Enter your username'" required/>
             <input type="password" autocorrect="off" name="loginPassword" placeholder="Enter your password" onfocus="this.placeholder = ''" onblur="this.placeholder='Enter your password'" required/>
             <button type="submit">Login</button>

+ 0 - 1
app/templates/room.html

@@ -58,7 +58,6 @@
                             {{else}}
                             <button title="You need to be logged to smile this song." type="button" id="smile-modal" class="btn btn-success btn-lg" data-toggle="modal" data-target="#myModal" disabled><i class="fa fa-smile-o"> 79</i></button>
                             <button title="You need to be logged to dislike this song." type="button" id="meh-modal" class="btn btn-danger btn-lg" data-toggle="modal" data-target="#myModal" disabled><i class="fa fa-meh-o"> 14</i></button>
-							<button title="You need to be logged to report this song!" type="button" id="song-modal" class="btn btn-warning btn-lg" data-toggle="modal" data-target="#myModal" disabled><i class="fa fa-flag"></i></button>
 							{{/if}}
                             <button title="Report this song!" type="button" id="report-modal" class="btn btn-warning btn-lg report-button" data-toggle="modal" data-target="#reportModal"><i class="fa fa-flag"></i></button>
                         </div>