summaryrefslogtreecommitdiffstats
path: root/client/lib/utils.js
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2018-09-16 01:50:36 +0300
committerLauri Ojansivu <x@xet7.org>2018-09-16 01:50:36 +0300
commitdf84a2be9adb2eeee25141588a80d4523d38675d (patch)
treed7defe25d43e41a76d9d11461cbc539ad01598c2 /client/lib/utils.js
parentb3a752ef34cb1cd324f7e2b55bebef81fb2281c3 (diff)
downloadwekan-df84a2be9adb2eeee25141588a80d4523d38675d.tar.gz
wekan-df84a2be9adb2eeee25141588a80d4523d38675d.tar.bz2
wekan-df84a2be9adb2eeee25141588a80d4523d38675d.zip
Fix lint errors.
Diffstat (limited to 'client/lib/utils.js')
-rw-r--r--client/lib/utils.js19
1 files changed, 10 insertions, 9 deletions
diff --git a/client/lib/utils.js b/client/lib/utils.js
index 24ff830a..525cfb83 100644
--- a/client/lib/utils.js
+++ b/client/lib/utils.js
@@ -188,23 +188,24 @@ Utils = {
} else if (matomo) {
window._paq.push(['trackPageView']);
}
+ },
getTriggerActionDesc(event, tempInstance) {
const jqueryEl = tempInstance.$(event.currentTarget.parentNode);
- const triggerEls = jqueryEl.find(".trigger-content").children();
- let finalString = "";
+ const triggerEls = jqueryEl.find('.trigger-content').children();
+ let finalString = '';
for (let i = 0; i < triggerEls.length; i++) {
const element = tempInstance.$(triggerEls[i]);
- if (element.hasClass("trigger-text")) {
+ if (element.hasClass('trigger-text')) {
finalString += element.text().toLowerCase();
- } else if (element.find("select").length > 0) {
- finalString += element.find("select option:selected").text().toLowerCase();
- } else if (element.find("input").length > 0) {
- finalString += element.find("input").val();
+ } else if (element.find('select').length > 0) {
+ finalString += element.find('select option:selected').text().toLowerCase();
+ } else if (element.find('input').length > 0) {
+ finalString += element.find('input').val();
}
// Add space
- if (i != length - 1) {
- finalString += " ";
+ if (i !== length - 1) {
+ finalString += ' ';
}
}
return finalString;