diff options
author | Joas Schilling <coding@schilljs.com> | 2018-03-06 14:19:47 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2018-04-19 10:30:43 +0200 |
commit | a6458745bd5ae49cedf6e5c60df6c8c69b5ef93c (patch) | |
tree | 248faa235f8d73bb12367d75cd6d42838d67bb4e /apps/workflowengine | |
parent | 63dfbb2127ec9a930778dd5d31b640c5f2cc3652 (diff) | |
download | nextcloud-server-a6458745bd5ae49cedf6e5c60df6c8c69b5ef93c.tar.gz nextcloud-server-a6458745bd5ae49cedf6e5c60df6c8c69b5ef93c.zip |
Fix code errors
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/workflowengine')
-rw-r--r-- | apps/workflowengine/js/requestuseragentplugin.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/apps/workflowengine/js/requestuseragentplugin.js b/apps/workflowengine/js/requestuseragentplugin.js index 973f66cba31..19450032fc3 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'); @@ -74,17 +74,17 @@ ] } ]; - 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 |