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

« back to all changes in this revision

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

  • Committer: David Coles
  • Date: 2010-07-28 10:45:53 UTC
  • mfrom: (1829 trunk)
  • mto: This revision was merged to the branch mainline in revision 1830.
  • Revision ID: coles.david@gmail.com-20100728104553-5z3nxt0l6kyfqfh5
MergeĀ fromĀ trunk

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