Merge pull request #4612 from nextcloud/js-fix-long-lines

Fix some long lines in JS - JSLinut recommendation
This commit is contained in:
Roeland Jago Douma 2017-05-01 19:55:56 +02:00 committed by GitHub
commit 4904117ba8
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,