Fix check progress endless hang
Fix check progress endless hang

Due to a javascript syntax bug, if the server-side task returned an
error the "Please wait..." dialog would remain forever.

hastexo/hastexo-xblock,hastexo/hastexo-xblock,arbrandes/hastexo-xblock,arbrandes/hastexo-xblock,hastexo/hastexo-xblock,arbrandes/hastexo-xblock,hastexo/hastexo-xblock,arbrandes/hastexo-xblock,arbrandes/hastexo-xblock