Spaces to tabs
This commit is contained in:
@@ -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() {
|
||||||
|
Reference in New Issue
Block a user