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