~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/webapp/console/media/console.js

  • Committer: William Grant
  • Date: 2010-02-25 09:10:36 UTC
  • Revision ID: grantw@unimelb.edu.au-20100225091036-urjqg7cbvvmlmd7s
Print a CPythonesque version on console startup.

Show diffs side-by-side

added added

removed removed

Lines of Context:
89
89
            {
90
90
                server_key = JSON.parse(json_text).key;
91
91
                server_started = true;
92
 
                if (callback != null)
93
 
                    callback();
 
92
                var args = {
 
93
                    "ivle.op": "chat", "kind": "splash", "key": server_key
 
94
                };
 
95
                var callback2 = function(xhr)
 
96
                {
 
97
                    console_response(null, null, xhr.responseText);
 
98
                    if (callback != null)
 
99
                        callback();
 
100
                };
 
101
                ajax_call(callback2, "console", "service", args, "POST");
94
102
            }
95
103
            catch (e)
96
104
            {