Skip to content

Commit

Permalink
fix: wrong html element for upload image
Browse files Browse the repository at this point in the history
bug introduced at this commit f8c1b91
  • Loading branch information
wonknu committed Mar 23, 2017
1 parent 015464c commit 5d721d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/public/abecms/scripts/modules/EditorFiles.js
Expand Up @@ -34,7 +34,7 @@ export default class EditorFiles {
return false
}
EditorUtils.scrollToInputElement(target)
var parentTarget = target.parentNode.parentNode.parentNode
var parentTarget = target.parentNode.parentNode.parentNode.parentNode
var percent = parentTarget.querySelector('.percent')
var percentHtml = percent.innerHTML
var file = target.files[0]
Expand Down

0 comments on commit 5d721d7

Please sign in to comment.