From 07641b54d5e3998ffd789a70533a86620f60efc8 Mon Sep 17 00:00:00 2001 From: ezsh <ezsh.junk@gmail.com> Date: Tue, 14 May 2019 18:26:48 +0200 Subject: [PATCH] Fix a typo ('experianced' -> 'experienced') --- src/js/slaveListing.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/js/slaveListing.js b/src/js/slaveListing.js index 0b97e20f5f8..b76da962f4a 100644 --- a/src/js/slaveListing.js +++ b/src/js/slaveListing.js @@ -816,10 +816,10 @@ App.UI.SlaveList.slaveSelectionList = function () { /** * Displays assignment filter links, whose action are generated by the callback * @param {assignmentFilterGenerateCallback} callback - * @param {boolean} includeExperianced + * @param {boolean} includeExperienced * @returns {string} */ - function _assignmentFilter(callback, includeExperianced) { + function _assignmentFilter(callback, includeExperienced) { let filters = { all: "All" }; @@ -837,14 +837,14 @@ App.UI.SlaveList.slaveSelectionList = function () { for (const f in filters) { links.push(App.UI.passageLink(filters[f], passage, callback(f))); } - if (includeExperianced) { - links.push(`<span class="lime">${App.UI.passageLink('Experianced', passage, callback('experianced'))}</span>`); + if (includeExperienced) { + links.push(`<span class="lime">${App.UI.passageLink('Experienced', passage, callback('experienced'))}</span>`); }*/ for (const f in filters) { links.push(`<<link "${filters[f]}">>${callback(f)}<</link>>`); } - if (includeExperianced) { - links.push(`<span class="lime"><<link "Experianced">>${callback('experianced')}<</link>></span>`); + if (includeExperienced) { + links.push(`<span class="lime"><<link "Experienced">>${callback('experienced')}<</link>></span>`); } return links.join(' | '); @@ -864,7 +864,7 @@ App.UI.SlaveList.slaveSelectionList = function () { case 'all': unfilteredIndices = Array.from({length: slaves.length}, (v, i) => i); break; - case 'experianced': + case 'experienced': unfilteredIndices = slaves.reduce((acc, s, idx) => { if (options.expCheck(s)) { acc.push(idx); -- GitLab