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

« back to all changes in this revision

Viewing changes to www/media/browser/editor.js

  • Committer: me at id
  • Date: 2009-02-03 03:51:39 UTC
  • Revision ID: svn-v4:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:1192
ivle.dispatch: Only show tracebacks if we are logged in and not a student, or
    if we cannot write to the error log. Previously they were shown if we were
    not logged in, not a student, or the error log was unwritable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
83
83
function initialise_codepress()
84
84
{
85
85
    editbox.addChangeHandler(edit_text);
 
86
    editbox.addSaveHandler(function() {document.getElementById("save_button").click()});
86
87
     
87
88
    /* We can only safely disable the save button on the first load.
88
89
     * Syntax highlighting changes will also get this function called.
141
142
            'text/css': 'css',
142
143
            'text/plain': 'text',
143
144
            'text/html': 'html',
 
145
            'application/xml': 'html',
144
146
            'application/xhtml+xml': 'html'}[mime];
145
147
}