Browse Source

just a small change to update session info (and the session because every request does this) on window focus

master
Georg Hopp 14 years ago
parent
commit
784364db3c
  1. 5
      assets/js/init.js

5
assets/js/init.js

@ -4,7 +4,10 @@ $(document).ready(function() {
var sval = new ServerVal("#randval");
sess = new Session("#sessinfo");
$.getJSON("/sessinfo/", $.proxy(sess.loadJSON, sess));
$(window).focus(function() {
$.getJSON("/sessinfo/", $.proxy(sess.loadJSON, sess));
});
$("ul#menu li:eq(0)").click(function() {
sval.start();

Loading…
Cancel
Save