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

« back to all changes in this revision

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

  • Committer: Matt Giuca
  • Date: 2009-04-22 04:56:58 UTC
  • Revision ID: matt.giuca@gmail.com-20090422045658-nnfepg0902n3mwtq
ivle.makeuser: Fixed odd code which would create the home directory, then
    immediately clobber it by restoring the backup.
    This broke in Python 2.6 because the behaviour of shutil.move changed.
    (Commented).

Show diffs side-by-side

added added

removed removed

Lines of Context:
254
254
 
255
255
    if (typeof(inputbox) == "string")
256
256
    {
257
 
        var inputline = inputbox;
 
257
        var inputline = inputbox + "\n";
258
258
        inputbox = null;
259
259
    }
260
260
    else
270
270
        var span = document.createElement("span");
271
271
        span.setAttribute("class", "inputPrompt");
272
272
        span.appendChild(document.createTextNode(
273
 
              document.getElementById("console_prompt").firstChild.textContent)
 
273
              document.getElementById("console_prompt").firstChild.nodeValue)
274
274
                        );
275
275
        output.appendChild(span);
276
276
        // Print input line itself in a span
464
464
    else
465
465
    {
466
466
        xhr = ajax_call(null, "console", "service", {"ivle.op": "chat", "kind": "terminate", "key": server_key}, "POST");
467
 
        console_response(null, null, null, xhr.responseText);
 
467
        console_response(null, null, xhr.responseText);
468
468
    }
469
469
}
470
470