comparison rlgterm.js @ 65:e63c26dc0497

RLG-Web client: refresh the current games list. Add a refresh button to the list of watchable games. Also refresh it if watching fails.
author John "Elwin" Edwards <elwin@sdf.org>
date Wed, 20 Jun 2012 09:12:26 -0700
parents e3082fd06520
children 57bf0dcd080e
comparison
equal deleted inserted replaced
64:e3082fd06520 65:e63c26dc0497
601 setmode("play"); 601 setmode("play");
602 getData(); 602 getData();
603 } 603 }
604 else if (reply.t == 'E') { 604 else if (reply.t == 'E') {
605 debug(1, "Could not watch game " + gamenumber + ": " + reply.s); 605 debug(1, "Could not watch game " + gamenumber + ": " + reply.s);
606 getcurrent();
606 } 607 }
607 }; 608 };
608 req.open('POST', '/watch', true); 609 req.open('POST', '/watch', true);
609 req.send(JSON.stringify(wmsg)); 610 req.send(JSON.stringify(wmsg));
610 return; 611 return;