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

« back to all changes in this revision

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

  • Committer: wagrant
  • Date: 2008-07-15 01:50:01 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:869
python-console: Don't assume that our command will give a return value,
                as we're not using 'eval' mode but 'single'. Always
                return {'okay': null} at the end so the console knows
                that we are finished.

Show diffs side-by-side

added added

removed removed

Lines of Context:
279
279
    var output = document.getElementById("console_output");
280
280
    if (res.hasOwnProperty('okay'))
281
281
    {
282
 
        // Success!
283
 
        if (res.okay)
284
 
        {
285
 
            output.appendChild(document.createTextNode(res.okay + "\n"));
286
 
            output.appendChild(span);
287
 
        }
288
282
        // set the prompt to >>>
289
283
        var prompt = document.getElementById("console_prompt");
290
284
        prompt.replaceChild(document.createTextNode(">>> "), prompt.firstChild);