~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-02-26 07:56:07 UTC
  • Revision ID: grantw@unimelb.edu.au-20100226075607-16kwobynb8ollb2x
Document that user creation through the UI is possible.

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, cls)
537
 
{
538
 
    if (!cls)
539
 
        cls = "errorMsg";
 
536
function print_error(error, class)
 
537
 
538
    if (!class)
 
539
        class = "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", cls);
 
545
    span.setAttribute("class", class);
546
546
    span.appendChild(document.createTextNode(error + "\n"));
547
547
    output.appendChild(span);
548
548