浏览代码

Removed save button to save to show likes/dislikes on settings page.

KrisVos130 9 年之前
父节点
当前提交
5c84cae4a7
共有 2 个文件被更改,包括 2 次插入6 次删除
  1. 2 5
      app/client/scripts/events.js
  2. 0 1
      app/client/templates/settings.html

+ 2 - 5
app/client/scripts/events.js

@@ -1634,11 +1634,8 @@ Template.room.events({
 });
 // Settings Template
 Template.settings.events({
-    "click #save-settings": function() {
-        Meteor.call("updateSettings", $("#showRating").is(":checked"), function(err,res){
-            var $toastContent = $('<span><strong>Settings Saved!</strong> No errors were found.</span>');
-            Materialize.toast($toastContent, 3000);
-        });
+    "change #showRating": function() {
+        Meteor.call("updateSettings", $("#showRating").is(":checked"), function(){});
     },
     "click #delete-account": function(){
         $("#delete-account").text("Click to confirm");

+ 0 - 1
app/client/templates/settings.html

@@ -8,7 +8,6 @@
                 <input type="checkbox" id="showRating"/>
                 <label for="showRating">Show liked and disliked song on profile?</label>
             </p>
-            <button class="btn" id="save-settings">Save</button>
             <h4 class="thin">Change Password</h4>
             <div class="input-field">
                 <input type="password" id="old-password" class="validate">