mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -06:00
translator: bug fix for copy/paste import
This commit is contained in:
@@ -430,7 +430,7 @@ Translator.prototype.import=function(el) {
|
||||
restore()
|
||||
}
|
||||
function import_file(ev) { import_text(ev.target.result) }
|
||||
if(files) {
|
||||
if(files.files && files.files.length>0) {
|
||||
var file=files.files[0]
|
||||
var r=new FileReader()
|
||||
r.onload=import_file
|
||||
|
||||
Reference in New Issue
Block a user