~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-07-03 01:39:51 UTC
  • Revision ID: grantw@unimelb.edu.au-20100703013951-mo3i08jw494dddve
Install 'python' in the jail, not 'python2.5' -- we want the default system Python, and 2.5 doesn't exist on Lucid.

Show diffs side-by-side

added added

removed removed

Lines of Context:
533
533
}
534
534
 
535
535
/** Prints an error line in the console **/
536
 
function print_error(error, class)
537
 
538
 
    if (!class)
539
 
        class = "errorMsg";
 
536
function print_error(error, cls)
 
537
{
 
538
    if (!cls)
 
539
        cls = "errorMsg";
540
540
 
541
541
    var output = document.getElementById("console_output");
542
542
  
543
543
    // Create text block
544
544
    var span = document.createElement("span");
545
 
    span.setAttribute("class", class);
 
545
    span.setAttribute("class", cls);
546
546
    span.appendChild(document.createTextNode(error + "\n"));
547
547
    output.appendChild(span);
548
548