Sorry, I realized that my answer wasn't complete. The showSerieList function will need to change:
function showSerieList(id, result) {
// ...
Also, it looks like you can just do:
d.addCallback(showSerieList, id);
which is even easier.
Sorry, I realized that my answer wasn't complete. The showSerieList function will need to change:
function showSerieList(id, result) {
// ...
Also, it looks like you can just do:
d.addCallback(showSerieList, id);
which is even easier.