Allow (basic) chaining on api_with_auth

This commit is contained in:
Ludovic Stephan 2017-04-10 12:33:24 -03:00
parent 983a55780f
commit cd0e4c6f3e

View file

@ -382,7 +382,7 @@ function api_with_auth(settings, password) {
var on_success = settings.on_success || $.noop ;
var on_400 = settings.on_400 || $.noop ;
$.ajax({
return $.ajax({
dataType: "json",
url: url,
method: "POST",