small fix

This commit is contained in:
ccd0 2014-07-26 16:17:19 -07:00
parent 1d0964131a
commit 2128660c0b

View File

@ -1,6 +1,6 @@
ImageCommon = ImageCommon =
error: (file, post, redirect, reload) -> error: (file, post, redirect, reload) ->
if file.error and file.error.code isnt @error.MEDIA_ERR_NETWORK # video if file.error and file.error.code isnt file.error.MEDIA_ERR_NETWORK # video
error = switch file.error.code error = switch file.error.code
when 1 then 'MEDIA_ERR_ABORTED' when 1 then 'MEDIA_ERR_ABORTED'
when 3 then 'MEDIA_ERR_DECODE' when 3 then 'MEDIA_ERR_DECODE'