Browse Source

fixed few overseights

Mario Orlicky 8 năm trước cách đây
mục cha
commit
35778d2673

+ 0 - 1
client/components/main/layouts.styl

@@ -1,4 +1,3 @@
-
 @import 'nib'
 
 global-reset()

+ 1 - 1
client/components/users/userHeader.js

@@ -106,7 +106,7 @@ Template.changeSettingsPopup.events({
   },
   'click .js-apply-show-cards-at'(evt, tpl) {
     evt.preventDefault();
-    const minLimit = parseInt(tpl.$('#show-cards-count-at').val());
+    const minLimit = parseInt(tpl.$('#show-cards-count-at').val(), 10);
     if (!isNaN(minLimit)) {
       Meteor.call('changeLimitToShowCardsCount', minLimit);
       Popup.back();

+ 1 - 1
models/users.js

@@ -315,7 +315,7 @@ Meteor.methods({
   changeLimitToShowCardsCount(limit) {
     check(limit, Number);
     Meteor.user().setShowCardsCountAt(limit);
-  }
+  },
 });
 
 if (Meteor.isServer) {