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

« back to all changes in this revision

Viewing changes to ivle/webapp/filesystem/browser/media/editor.js

  • Committer: William Grant
  • Date: 2009-04-28 05:41:36 UTC
  • Revision ID: grantw@unimelb.edu.au-20090428054136-sx8q4kgtvzxkdd90
Treat application/x-javascript the same as application/javascript.

Ubuntu 8.04's mimetypes Python module knows the former, while later versions
know the latter.

Show diffs side-by-side

added added

removed removed

Lines of Context:
138
138
function language_from_mime(mime)
139
139
{
140
140
    return {'text/x-python': 'python',
 
141
            'application/x-javascript': 'javascript',
141
142
            'application/javascript': 'javascript',
142
143
            'text/css': 'css',
143
144
            'text/plain': 'text',