summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2017-05-01 19:55:56 +0200
committerGitHub <noreply@github.com>2017-05-01 19:55:56 +0200
commit4904117ba8206d24324d5c6a2f8150a1641e4ac5 (patch)
tree0caeea21ba119b4c53053442266bd54015c40ca8 /core
parent92b73db053246c0972e29bff3d996b57354c21e5 (diff)
parenta9ccfe06d95905d923b2871a3acd162f3d1aec1a (diff)
downloadnextcloud-server-4904117ba8206d24324d5c6a2f8150a1641e4ac5.tar.gz
nextcloud-server-4904117ba8206d24324d5c6a2f8150a1641e4ac5.zip
Merge pull request #4612 from nextcloud/js-fix-long-lines
Fix some long lines in JS - JSLinut recommendation
Diffstat (limited to 'core')
-rw-r--r--core/js/login/authpicker.js4
-rw-r--r--core/js/systemtags/systemtagsinputfield.js6
2 files changed, 8 insertions, 2 deletions
diff --git a/core/js/login/authpicker.js b/core/js/login/authpicker.js
index 6d8a6bb4160..666a63da365 100644
--- a/core/js/login/authpicker.js
+++ b/core/js/login/authpicker.js
@@ -8,6 +8,8 @@ jQuery(document).ready(function() {
$('#submit-app-token-login').click(function(e) {
e.preventDefault();
- window.location.href = 'nc://' + encodeURIComponent($('#user').val()) + ':' + encodeURIComponent($('#password').val()) + '@' + encodeURIComponent($('#serverHost').val());
+ window.location.href = 'nc://'
+ + encodeURIComponent($('#user').val()) + ':' + encodeURIComponent($('#password').val())
+ + '@' + encodeURIComponent($('#serverHost').val());
});
});
diff --git a/core/js/systemtags/systemtagsinputfield.js b/core/js/systemtags/systemtagsinputfield.js
index 62dae1e0a8f..ba72d486204 100644
--- a/core/js/systemtags/systemtagsinputfield.js
+++ b/core/js/systemtags/systemtagsinputfield.js
@@ -240,7 +240,11 @@
self.collection.fetch({
success: function(collection) {
// find the tag in the collection
- var model = collection.where({name: e.object.name.trim(), userVisible: true, userAssignable: true});
+ var model = collection.where({
+ name: e.object.name.trim(),
+ userVisible: true,
+ userAssignable: true
+ });
if (model.length) {
model = model[0];
// the tag already exists or was already assigned,