Fix some long lines in JS - JSLinut recommendation

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
Morris Jobke 2017-05-01 00:49:00 -03:00
parent 4518f6dc64
commit a9ccfe06d9
No known key found for this signature in database
GPG Key ID: 9CE5ED29E7FCD38A
2 changed files with 8 additions and 2 deletions

View File

@ -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());
});
});

View File

@ -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,