diff options
author | Maxime Quandalle <maxime@quandalle.com> | 2015-09-06 22:47:29 +0200 |
---|---|---|
committer | Maxime Quandalle <maxime@quandalle.com> | 2015-09-06 22:47:29 +0200 |
commit | 74fba0a817b414579f3223ac508b4fdb8faced98 (patch) | |
tree | dca966416c200e7b929a1b170b83be0e90095d5e /client/lib | |
parent | 54bc9d0dcbd9c2a0c3099a9ae46126fb1b81779d (diff) | |
download | wekan-74fba0a817b414579f3223ac508b4fdb8faced98.tar.gz wekan-74fba0a817b414579f3223ac508b4fdb8faced98.tar.bz2 wekan-74fba0a817b414579f3223ac508b4fdb8faced98.zip |
Fix a recurrent English typo
Diffstat (limited to 'client/lib')
-rw-r--r-- | client/lib/filter.js | 2 | ||||
-rw-r--r-- | client/lib/keyboard.js | 6 | ||||
-rw-r--r-- | client/lib/multiSelection.js | 12 |
3 files changed, 10 insertions, 10 deletions
diff --git a/client/lib/filter.js b/client/lib/filter.js index 532ef236..f7baf480 100644 --- a/client/lib/filter.js +++ b/client/lib/filter.js @@ -37,7 +37,7 @@ class SetFilter { } } - toogle(val) { + toggle(val) { if (this._indexOfVal(val) === -1) { this.add(val); } else { diff --git a/client/lib/keyboard.js b/client/lib/keyboard.js index 0bb9c380..af5fb7a2 100644 --- a/client/lib/keyboard.js +++ b/client/lib/keyboard.js @@ -6,14 +6,14 @@ Mousetrap.bind('?', () => { }); Mousetrap.bind('w', () => { - Sidebar.toogle(); + Sidebar.toggle(); }); Mousetrap.bind('q', () => { const currentBoardId = Session.get('currentBoard'); const currentUserId = Meteor.userId(); if (currentBoardId && currentUserId) { - Filter.members.toogle(currentUserId); + Filter.members.toggle(currentUserId); } }); @@ -39,7 +39,7 @@ Mousetrap.bind(['down', 'up'], (evt, key) => { Template.keyboardShortcuts.helpers({ mapping: [{ keys: ['W'], - action: 'shortcut-toogle-sidebar', + action: 'shortcut-toggle-sidebar', }, { keys: ['Q'], action: 'shortcut-filter-my-cards', diff --git a/client/lib/multiSelection.js b/client/lib/multiSelection.js index 77f351a4..c2bb2bbc 100644 --- a/client/lib/multiSelection.js +++ b/client/lib/multiSelection.js @@ -100,26 +100,26 @@ MultiSelection = { }, add(cardIds) { - return this.toogle(cardIds, { add: true, remove: false }); + return this.toggle(cardIds, { add: true, remove: false }); }, remove(cardIds) { - return this.toogle(cardIds, { add: false, remove: true }); + return this.toggle(cardIds, { add: false, remove: true }); }, - toogleRange(cardId) { + toggleRange(cardId) { const selectedCards = this._selectedCards.get(); let startRange; this.reset(); if (!this.isActive() || selectedCards.length === 0) { - this.toogle(cardId); + this.toggle(cardId); } else { startRange = selectedCards[selectedCards.length - 1]; - this.toogle(getCardsBetween(startRange, cardId)); + this.toggle(getCardsBetween(startRange, cardId)); } }, - toogle(cardIds, options) { + toggle(cardIds, options) { cardIds = _.isString(cardIds) ? [cardIds] : cardIds; options = _.extend({ add: true, |