Clean code.

This commit is contained in:
Lars Jung
2015-04-17 17:50:27 +02:00
parent 57ab18355d
commit 762fd54788

View File

@@ -7,19 +7,19 @@ modulejs.define('core/server', ['$', '_', 'config', 'core/location'], function (
if (hasApi) { if (hasApi) {
$.ajax({ $.ajax({
url: location.getAbsHref(), url: location.getAbsHref(),
data: data, data: data,
type: 'POST', type: 'POST',
dataType: 'json' dataType: 'json'
}) })
.done(function (json) { .done(function (json) {
callback(json); callback(json);
}) })
.fail(function () { .fail(function () {
callback(); callback();
}); });
} else { } else {
callback(); callback();
} }