redmine/redmine — pull request #34 by hirayama-evolni (2014-04-18 14:28:57+00:00)
Title: Explicitly handle .js files as text so that JS attachment can be previewed.

Currently JavaScript attachment is not recognized as text, so it cannot be previewed.
Though it's mime type is application/javascript, it actually is text.
I think it's natural to handle it as text file to preview it.