From a9ccfe06d95905d923b2871a3acd162f3d1aec1a Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Mon, 1 May 2017 00:49:00 -0300 Subject: [PATCH] Fix some long lines in JS - JSLinut recommendation Signed-off-by: Morris Jobke --- core/js/login/authpicker.js | 4 +++- core/js/systemtags/systemtagsinputfield.js | 6 +++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/core/js/login/authpicker.js b/core/js/login/authpicker.js index 6d8a6bb416..666a63da36 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 62dae1e0a8..ba72d48620 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,