summaryrefslogtreecommitdiffstats
path: root/client/lib
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2019-01-04 09:23:54 +0200
committerLauri Ojansivu <x@xet7.org>2019-01-04 09:23:54 +0200
commit2b53fae16f07c3614ee9e9d54cd17f8102218fea (patch)
treef4c2066ff4ab269f78091690fd0d377f76dac083 /client/lib
parent1683bcb3e5980d3af4a07c4bb22e534b98eff862 (diff)
parent4d8b2029d266843dc0eb376a0bf752c46e440a13 (diff)
downloadwekan-2b53fae16f07c3614ee9e9d54cd17f8102218fea.tar.gz
wekan-2b53fae16f07c3614ee9e9d54cd17f8102218fea.tar.bz2
wekan-2b53fae16f07c3614ee9e9d54cd17f8102218fea.zip
Merge branch 'feature-rules' of https://github.com/Angtrim/wekan into Angtrim-feature-rules
Diffstat (limited to 'client/lib')
-rw-r--r--client/lib/popup.js6
-rw-r--r--client/lib/utils.js12
2 files changed, 13 insertions, 5 deletions
diff --git a/client/lib/popup.js b/client/lib/popup.js
index 516ce849..5b640f50 100644
--- a/client/lib/popup.js
+++ b/client/lib/popup.js
@@ -27,11 +27,9 @@ window.Popup = new class {
open(name) {
const self = this;
const popupName = `${name}Popup`;
-
function clickFromPopup(evt) {
return $(evt.target).closest('.js-pop-over').length !== 0;
}
-
return function(evt) {
// If a popup is already opened, clicking again on the opener element
// should close it -- and interrupt the current `open` function.
@@ -57,7 +55,6 @@ window.Popup = new class {
self._stack = [];
openerElement = evt.currentTarget;
}
-
$(openerElement).addClass('is-active');
evt.preventDefault();
@@ -139,6 +136,7 @@ window.Popup = new class {
const openerElement = this._getTopStack().openerElement;
$(openerElement).removeClass('is-active');
+
this._stack = [];
}
}
@@ -200,7 +198,7 @@ escapeActions.forEach((actionName) => {
() => Popup[actionName](),
() => Popup.isOpen(),
{
- noClickEscapeOn: '.js-pop-over',
+ noClickEscapeOn: '.js-pop-over,.js-open-card-title-popup',
enabledOnClick: actionName === 'close',
}
);
diff --git a/client/lib/utils.js b/client/lib/utils.js
index d46d8076..051ec952 100644
--- a/client/lib/utils.js
+++ b/client/lib/utils.js
@@ -218,10 +218,20 @@ Utils = {
const element = tempInstance.$(triggerEls[i]);
if (element.hasClass('trigger-text')) {
finalString += element.text().toLowerCase();
+ } else if (element.hasClass('user-details')) {
+ let username = element.find('input').val();
+ if(username == undefined || username == ''){
+ username = '*';
+ }
+ finalString += `${element.find('.trigger-text').text().toLowerCase() } ${ username}`;
} 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();
+ let inputvalue = element.find('input').val();
+ if(inputvalue == undefined || inputvalue == ''){
+ inputvalue = '*';
+ }
+ finalString += inputvalue;
}
// Add space
if (i !== length - 1) {