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

« back to all changes in this revision

Viewing changes to www/media/console/console.js

www/media/console/console.js: Comply with the rest of the interface changes
    that I didn't notice before.

Show diffs side-by-side

added added

removed removed

Lines of Context:
280
280
        span.appendChild(document.createTextNode(inputline));
281
281
        output.appendChild(span);
282
282
    }
283
 
    var args = {"ivle.op": which, "key": server_key, "text":inputline};
 
283
    var args = {"ivle.op": "chat", "kind": which, "key": server_key, "text":inputline};
284
284
    var callback = function(xhr)
285
285
        {
286
286
            console_response(inputbox, graytimer, inputline, xhr.responseText);
361
361
        {
362
362
            var kind = "chat";
363
363
        }
364
 
        var args = {"ivle.op": kind, "key": server_key, "text":''};
 
364
        var args = {"ivle.op": "chat", "kind": kind, "key": server_key, "text":''};
365
365
        ajax_call(callback, "console", "service", args, "POST");
366
366
 
367
367
        // Open up the console so we can see the output
470
470
    }
471
471
    else
472
472
    {
473
 
        xhr = ajax_call(null, "console", "service", {"ivle.op": "restart", "key": server_key}, "POST");
 
473
        xhr = ajax_call(null, "console", "service", {"ivle.op": "chat", "kind": "terminate", "key": server_key}, "POST");
474
474
        console_response(null, null, null, xhr.responseText);
475
475
    }
476
476
}