Commit 784364db3cc9b5089f1ec5019ff5e056b8806039

Authored by Georg Hopp
1 parent 662e3aac

just a small change to update session info (and the session because every reques…

…t does this) on window focus
Showing 1 changed file with 4 additions and 1 deletions
... ... @@ -4,7 +4,10 @@ $(document).ready(function() {
4 4 var sval = new ServerVal("#randval");
5 5
6 6 sess = new Session("#sessinfo");
7   - $.getJSON("/sessinfo/", $.proxy(sess.loadJSON, sess));
  7 +
  8 + $(window).focus(function() {
  9 + $.getJSON("/sessinfo/", $.proxy(sess.loadJSON, sess));
  10 + });
8 11
9 12 $("ul#menu li:eq(0)").click(function() {
10 13 sval.start();
... ...
Please register or login to post a comment