Commit 2379e2c9 authored by Martyn Smith's avatar Martyn Smith Committed by Martyn Smith
Browse files

Fixed arguments to the success callback

parent 1dd581f5
......@@ -176,7 +176,7 @@ function sendjsonrequest(script, data, rtype, successcallback, errorcallback, qu
if (data.message.message && typeof(data.message.message == 'string') && !quiet) {
displayMessage(data.message.message, errtype);
}
try { successcallback(data); } catch (e) { logError('sendjsonrequest() callback failed: ', data); }
try { successcallback(data.message); } catch (e) { logError('sendjsonrequest() callback failed: ', data); }
}
else {
try { successcallback(data); } catch (e) { logError('sendjsonrequest() callback failed: ', data); }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment