changed image preview to lowercase it so .PNG will preview

This commit is contained in:
Henry Oswald 2014-05-21 17:44:30 +01:00
parent 895bb55677
commit a2f564df8b

View file

@ -9,7 +9,7 @@ define [
id: "fileViewArea" id: "fileViewArea"
render: () -> render: () ->
extension = @model.get("name").split(".").pop() extension = @model.get("name").split(".").pop().toLowerCase()
image = (["jpg", "jpeg", "png", "gif", "eps", "pdf"].indexOf(extension) != -1) image = (["jpg", "jpeg", "png", "gif", "eps", "pdf"].indexOf(extension) != -1)
html = Mustache.to_html(@template, { html = Mustache.to_html(@template, {
name: @model.get("name") name: @model.get("name")