Spaces to tabs

This commit is contained in:
2017-08-24 10:36:29 +02:00
parent 30902bc9cd
commit 65518f2208

View File

@@ -178,24 +178,24 @@
script. script.
function patchOrganization(patch) { function patchOrganization(patch) {
if (typeof patch == 'undefined') { if (typeof patch == 'undefined') {
throw 'patchOrganization(undefined) called'; throw 'patchOrganization(undefined) called';
} }
if (console) console.log('patchOrganization', patch); if (console) console.log('patchOrganization', patch);
var promise = $.ajax({ var promise = $.ajax({
url: '/api/organizations/{{ organization._id }}', url: '/api/organizations/{{ organization._id }}',
method: 'PATCH', method: 'PATCH',
contentType: 'application/json', contentType: 'application/json',
data: JSON.stringify(patch), data: JSON.stringify(patch),
}) })
.fail(function(err) { .fail(function(err) {
if (console) console.log('Error patching: ', err); if (console) console.log('Error patching: ', err);
}) })
; ;
return promise; return promise;
} }
$(document).ready(function() { $(document).ready(function() {