MM-2033 fixes img showing infinity progress

Этот коммит содержится в:
=Corey Hulen
2015-08-27 11:05:18 -07:00
родитель db7e8c1288
Коммит 30f22ec9c7
2 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@@ -347,6 +347,7 @@ func getFile(c *Context, w http.ResponseWriter, r *http.Request) {
}
w.Header().Set("Cache-Control", "max-age=2592000, public")
w.Header().Set("Content-Length", strconv.Itoa(len(f)))
w.Write(f)
}

Просмотреть файл

@@ -248,6 +248,7 @@ module.exports = React.createClass({
// display a progress indicator when the preview for an image is still loading
var percentage = Math.floor(this.state.progress[this.state.imgId]);
if (percentage) {
content = (
<div>
<img className='loader-image' src='/static/images/load.gif' />