From 35778d26737c5ca1702c6c1f3ca1be0a90a9e8b8 Mon Sep 17 00:00:00 2001 From: Mario Orlicky Date: Fri, 25 Nov 2016 21:53:18 +0100 Subject: [PATCH] fixed few overseights --- client/components/main/layouts.styl | 1 - client/components/users/userHeader.js | 2 +- models/users.js | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/client/components/main/layouts.styl b/client/components/main/layouts.styl index 138346449..38fd83ecc 100644 --- a/client/components/main/layouts.styl +++ b/client/components/main/layouts.styl @@ -1,4 +1,3 @@ - @import 'nib' global-reset() diff --git a/client/components/users/userHeader.js b/client/components/users/userHeader.js index 65b7e8c3c..98053ed16 100644 --- a/client/components/users/userHeader.js +++ b/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(); diff --git a/models/users.js b/models/users.js index 278d069c0..58513231b 100644 --- a/models/users.js +++ b/models/users.js @@ -315,7 +315,7 @@ Meteor.methods({ changeLimitToShowCardsCount(limit) { check(limit, Number); Meteor.user().setShowCardsCountAt(limit); - } + }, }); if (Meteor.isServer) {