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'
global-reset()

View file

@ -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();

View file

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