Merge pull request #4612 from nextcloud/js-fix-long-lines
Fix some long lines in JS - JSLinut recommendation
This commit is contained in:
commit
4904117ba8
|
@ -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());
|
||||
});
|
||||
});
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue