summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaxime Quandalle <maxime@quandalle.com>2015-09-06 22:47:29 +0200
committerMaxime Quandalle <maxime@quandalle.com>2015-09-06 22:47:29 +0200
commit74fba0a817b414579f3223ac508b4fdb8faced98 (patch)
treedca966416c200e7b929a1b170b83be0e90095d5e
parent54bc9d0dcbd9c2a0c3099a9ae46126fb1b81779d (diff)
downloadwekan-74fba0a817b414579f3223ac508b4fdb8faced98.tar.gz
wekan-74fba0a817b414579f3223ac508b4fdb8faced98.tar.bz2
wekan-74fba0a817b414579f3223ac508b4fdb8faced98.zip
Fix a recurrent English typo
-rw-r--r--client/components/boards/boardHeader.js4
-rw-r--r--client/components/lists/listBody.js4
-rw-r--r--client/components/sidebar/sidebar.jade2
-rw-r--r--client/components/sidebar/sidebar.js6
-rw-r--r--client/components/sidebar/sidebarFilters.jade4
-rw-r--r--client/components/sidebar/sidebarFilters.js8
-rw-r--r--client/lib/filter.js2
-rw-r--r--client/lib/keyboard.js6
-rw-r--r--client/lib/multiSelection.js12
-rw-r--r--i18n/en.i18n.json2
10 files changed, 25 insertions, 25 deletions
diff --git a/client/components/boards/boardHeader.js b/client/components/boards/boardHeader.js
index f98b6eef..f259b2a6 100644
--- a/client/components/boards/boardHeader.js
+++ b/client/components/boards/boardHeader.js
@@ -126,7 +126,7 @@ BlazeComponent.extendComponent({
this.visibilityMenuIsOpen.set(false);
},
- toogleVisibilityMenu() {
+ toggleVisibilityMenu() {
this.visibilityMenuIsOpen.set(!this.visibilityMenuIsOpen.get());
},
@@ -151,7 +151,7 @@ BlazeComponent.extendComponent({
'click .js-select-visibility'() {
this.setVisibility(this.currentData());
},
- 'click .js-change-visibility': this.toogleVisibilityMenu,
+ 'click .js-change-visibility': this.toggleVisibilityMenu,
submit: this.onSubmit,
}];
},
diff --git a/client/components/lists/listBody.js b/client/components/lists/listBody.js
index cc8c94cc..2e00cb4f 100644
--- a/client/components/lists/listBody.js
+++ b/client/components/lists/listBody.js
@@ -67,7 +67,7 @@ BlazeComponent.extendComponent({
if (MultiSelection.isActive() || evt.shiftKey) {
evt.stopImmediatePropagation();
evt.preventDefault();
- const methodName = evt.shiftKey ? 'toogleRange' : 'toogle';
+ const methodName = evt.shiftKey ? 'toggleRange' : 'toggle';
MultiSelection[methodName](this.currentData()._id);
// If the card is already selected, we want to de-select it.
@@ -87,7 +87,7 @@ BlazeComponent.extendComponent({
toggleMultiSelection(evt) {
evt.stopPropagation();
evt.preventDefault();
- MultiSelection.toogle(this.currentData()._id);
+ MultiSelection.toggle(this.currentData()._id);
},
events() {
diff --git a/client/components/sidebar/sidebar.jade b/client/components/sidebar/sidebar.jade
index a09f6a20..e7cd1159 100644
--- a/client/components/sidebar/sidebar.jade
+++ b/client/components/sidebar/sidebar.jade
@@ -1,6 +1,6 @@
template(name="sidebar")
.board-sidebar.sidebar(class="{{#if isOpen}}is-open{{/if}}")
- a.sidebar-tongue.js-toogle-sidebar(
+ a.sidebar-tongue.js-toggle-sidebar(
class="{{#if isTongueHidden}}is-hidden{{/if}}")
i.fa.fa-angle-left
.sidebar-content.js-board-sidebar-content.js-perfect-scrollbar
diff --git a/client/components/sidebar/sidebar.js b/client/components/sidebar/sidebar.js
index ccc7e5aa..eff0ef52 100644
--- a/client/components/sidebar/sidebar.js
+++ b/client/components/sidebar/sidebar.js
@@ -44,7 +44,7 @@ BlazeComponent.extendComponent({
}
},
- toogle() {
+ toggle() {
this._isOpen.set(!this._isOpen.get());
},
@@ -96,7 +96,7 @@ BlazeComponent.extendComponent({
// XXX Hacky, we need some kind of `super`
const mixinEvents = this.getMixin(Mixins.InfiniteScrolling).events();
return mixinEvents.concat([{
- 'click .js-toogle-sidebar': this.toogle,
+ 'click .js-toggle-sidebar': this.toggle,
'click .js-back-home': this.setView,
}]);
},
@@ -129,7 +129,7 @@ Template.memberPopup.helpers({
Template.memberPopup.events({
'click .js-filter-member'() {
- Filter.members.toogle(this.userId);
+ Filter.members.toggle(this.userId);
Popup.close();
},
'click .js-change-role': Popup.open('changePermissions'),
diff --git a/client/components/sidebar/sidebarFilters.jade b/client/components/sidebar/sidebarFilters.jade
index 26e49aba..c894bc8b 100644
--- a/client/components/sidebar/sidebarFilters.jade
+++ b/client/components/sidebar/sidebarFilters.jade
@@ -22,7 +22,7 @@ template(name="filterSidebar")
if isActive
with getUser userId
li(class="{{#if Filter.members.isSelected _id}}active{{/if}}")
- a.name.js-toogle-member-filter
+ a.name.js-toggle-member-filter
+userAvatar(userId=this._id)
span.sidebar-list-item-description
= profile.fullname
@@ -59,7 +59,7 @@ template(name="multiselectionSidebar")
if isActive
with getUser userId
li(class="{{#if Filter.members.isSelected _id}}active{{/if}}")
- a.name.js-toogle-member-multiselection
+ a.name.js-toggle-member-multiselection
+userAvatar(userId=this._id)
span.sidebar-list-item-description
= profile.fullname
diff --git a/client/components/sidebar/sidebarFilters.js b/client/components/sidebar/sidebarFilters.js
index 7fce7286..335cc7d6 100644
--- a/client/components/sidebar/sidebarFilters.js
+++ b/client/components/sidebar/sidebarFilters.js
@@ -7,12 +7,12 @@ BlazeComponent.extendComponent({
return [{
'click .js-toggle-label-filter'(evt) {
evt.preventDefault();
- Filter.labelIds.toogle(this.currentData()._id);
+ Filter.labelIds.toggle(this.currentData()._id);
Filter.resetExceptions();
},
- 'click .js-toogle-member-filter'(evt) {
+ 'click .js-toggle-member-filter'(evt) {
evt.preventDefault();
- Filter.members.toogle(this.currentData()._id);
+ Filter.members.toggle(this.currentData()._id);
Filter.resetExceptions();
},
'click .js-clear-all'(evt) {
@@ -85,7 +85,7 @@ BlazeComponent.extendComponent({
},
});
},
- 'click .js-toogle-member-multiselection'(evt) {
+ 'click .js-toggle-member-multiselection'(evt) {
const memberId = this.currentData()._id;
const mappedSelection = this.mapSelection('member', memberId);
let operation;
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,
diff --git a/i18n/en.i18n.json b/i18n/en.i18n.json
index f0646c8d..3486aa93 100644
--- a/i18n/en.i18n.json
+++ b/i18n/en.i18n.json
@@ -181,7 +181,7 @@
"shortcut-close-dialog": "Close Dialog",
"shortcut-filter-my-cards": "Filter my cards",
"shortcut-show-shortcuts": "Bring up this shortcuts list",
- "shortcut-toogle-sidebar": "Toogle Board Sidebar",
+ "shortcut-toggle-sidebar": "Toggle Board Sidebar",
"signupPopup-title": "Create an Account",
"star-board-title": "Click to star this board. It will show up at top of your boards list.",
"starred-boards": "Starred Boards",