fixed few overseights

This commit is contained in:
Mario Orlicky 2016-11-25 21:53:18 +01:00
parent 606dbbbbf2
commit 35778d2673
3 changed files with 2 additions and 3 deletions

View file

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

View file

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

View file

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