try {
$.when(checkStatusErr(statusReference, accepted)).done(function(data) {
alert(statusReference + " " + data);
boolValue = data;
return data;
}).fail(function(err) {
return itemCheckFailed();
});
}
Hello,
this is my code. "data" is true. I want to get "true" outside the done function to the function above as the return value. How to do it right? The value behind data is exactly what I want but I can´t use it as the return value to the function around it.
I tried callback already but it seems to me that I use it the wrong way.
Thanks for any help!