diff options
author | Angelo Gallarello <angelo.gallarell@gmail.com> | 2018-12-29 17:36:57 +0100 |
---|---|---|
committer | Angelo Gallarello <angelo.gallarell@gmail.com> | 2018-12-29 17:36:57 +0100 |
commit | b2f23d619d1ff33e899080dca17d018f0e8d0963 (patch) | |
tree | b4c4c030687fdd729f87b29519e9c370aa71f60d | |
parent | 9d1d66b0f5253c571f07c0f7c6250f5a725ddbb1 (diff) | |
download | wekan-b2f23d619d1ff33e899080dca17d018f0e8d0963.tar.gz wekan-b2f23d619d1ff33e899080dca17d018f0e8d0963.tar.bz2 wekan-b2f23d619d1ff33e899080dca17d018f0e8d0963.zip |
Triggers by username, updated desc
-rw-r--r-- | client/lib/utils.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/client/lib/utils.js b/client/lib/utils.js index d46d8076..5ec62ef9 100644 --- a/client/lib/utils.js +++ b/client/lib/utils.js @@ -218,11 +218,14 @@ Utils = { const element = tempInstance.$(triggerEls[i]); if (element.hasClass('trigger-text')) { finalString += element.text().toLowerCase(); + } else if (element.hasClass('user-details')) { + console.log(element); + finalString += element.find('.trigger-text').text().toLowerCase()+ " " + 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 += ' '; |