|
@@ -200,9 +200,12 @@ build.uploadModal = (title, files) ->
|
|
|
<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
|
|
|
file.name = file.name.substr(0, 17) + '...' + file.name.substr(file.name.length-20, 20)
|
|
@@ -220,6 +223,8 @@ build.uploadModal = (title, files) ->
|
|
|
</div>
|
|
|
"""
|
|
|
|
|
|
+ i++
|
|
|
+
|
|
|
html += """
|
|
|
</div>
|
|
|
</div>
|