Fixed upload

This commit is contained in:
Tobias Reich 2014-10-21 14:33:26 +02:00
parent 7f37a7d471
commit afa9558036
3 changed files with 7 additions and 2 deletions

BIN
dist/main.js vendored

Binary file not shown.

BIN
dist/view.js vendored

Binary file not shown.

View File

@ -200,9 +200,12 @@ build.uploadModal = (title, files) ->
<div class='rows'> <div class='rows'>
""" """
console.log files i = 0
file = null
files.forEach (file, i, files) -> while i < files.length
file = files[i]
if file.name.length > 40 if file.name.length > 40
file.name = file.name.substr(0, 17) + '...' + file.name.substr(file.name.length-20, 20) file.name = file.name.substr(0, 17) + '...' + file.name.substr(file.name.length-20, 20)
@ -220,6 +223,8 @@ build.uploadModal = (title, files) ->
</div> </div>
""" """
i++
html += """ html += """
</div> </div>
</div> </div>