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

« back to all changes in this revision

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

  • Committer: dcoles
  • Date: 2008-03-04 11:38:02 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:642
makeuser.py: Needs to import random

Show diffs side-by-side

added added

removed removed

Lines of Context:
266
266
 
267
267
function console_response(inputbox, graytimer, inputline, responseText)
268
268
{
269
 
    try
270
 
    {
271
 
        var res = JSON.parse(responseText);
272
 
    }
273
 
    catch (e)
274
 
    {
275
 
        alert("An internal error occurred in the python console.");
276
 
        return;
277
 
    }
 
269
    var res = JSON.parse(responseText);
278
270
    var output = document.getElementById("console_output");
279
271
    if (res.hasOwnProperty('okay'))
280
272
    {
356
348
    divScroll.activeScroll();
357
349
 
358
350
    // Focus the input box by default
359
 
    document.getElementById("console_output").focus()
360
 
    document.getElementById("console_inputText").focus()
 
351
    // document.getElementById("console_inputText").focus()
361
352
}
362
353
 
363
354
function catch_input(key)