Signed-off-by: Morris Jobke <hey@morrisjobke.de>
$('#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());
});
});
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,