diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2018-08-09 09:55:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-09 09:55:26 +0200 |
commit | a21c93a3cf991ee58b1cda3762aa84f43bc42afd (patch) | |
tree | 7e45aed639ccac035424f6abc42cf01391bbb970 /apps/workflowengine | |
parent | ad8e7d86657dc51d5201e1506363233077bb1f11 (diff) | |
parent | 1fbfe7b72cd2d1ed1daa1d63c9bc1017418f3d3d (diff) | |
download | nextcloud-server-a21c93a3cf991ee58b1cda3762aa84f43bc42afd.tar.gz nextcloud-server-a21c93a3cf991ee58b1cda3762aa84f43bc42afd.zip |
Merge pull request #8690 from nextcloud/feature/8565/make-thunderbird-and-outlook-addons-identifyable
[Part2] Make thunderbird and outlook addons identifyable
Diffstat (limited to 'apps/workflowengine')
-rw-r--r-- | apps/workflowengine/js/requestuseragentplugin.js | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/apps/workflowengine/js/requestuseragentplugin.js b/apps/workflowengine/js/requestuseragentplugin.js index 973f66cba31..881ea4b8ac7 100644 --- a/apps/workflowengine/js/requestuseragentplugin.js +++ b/apps/workflowengine/js/requestuseragentplugin.js @@ -44,7 +44,7 @@ var placeholder = 'Mozilla/5.0 User Agent'; - if (check['operator'] === 'matches' || check['operator'] === '!matches') { + if (check.operator === 'matches' || check.operator === '!matches') { placeholder = '/^Mozilla\\/5\\.0 (.*)$/i'; } @@ -56,8 +56,8 @@ placement: 'bottom' }); - if (check['operator'] === 'matches' || check['operator'] === '!matches') { - if (this._validateRegex(check['value'])) { + if (check.operator === 'matches' || check.operator === '!matches') { + if (this._validateRegex(check.value)) { $(element).removeClass('invalid-input'); } else { $(element).addClass('invalid-input'); @@ -70,21 +70,22 @@ children: [ {id: 'android', text: t('workflowengine', 'Android client')}, {id: 'ios', text: t('workflowengine', 'iOS client')}, - {id: 'desktop', text: t('workflowengine', 'Desktop client')} + {id: 'desktop', text: t('workflowengine', 'Desktop client')}, + {id: 'mail', text: t('workflowengine', 'Thunderbird & Outlook addons')} ] } ]; - if (this.predefinedValues.indexOf(check['value']) === -1) { + if (this.predefinedValues.indexOf(check.value) === -1) { data.unshift({ - id: check['value'], - text: check['value'] - }) + id: check.value, + text: check.value + }); } $(element).select2({ data: data, createSearchChoice: function(term) { - if (self.predefinedValues.indexOf(check['value']) === -1) { + if (self.predefinedValues.indexOf(check.value) === -1) { return { id: term, text: term |