ソースを参照

Commit 11.7: Add event handler to call the setPrivate method.

Frederic G. MARAND 8 年 前
コミット
dd106e52b6
1 ファイル変更4 行追加0 行削除
  1. 4 0
      simple-todos.js

+ 4 - 0
simple-todos.js

@@ -66,6 +66,10 @@ if (Meteor.isClient) {
 
     'click .toggle-checked' : function (e) {
       Meteor.call('setChecked', this._id, !this.checked);
+    },
+
+    'click .toggle-private': function (e) {
+      Meteor.call('setPrivate', this._id, ! this.private);
     }
   });