mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-01 23:32:51 -06:00
translator: expanatory text for local file import
This commit is contained in:
@@ -442,7 +442,10 @@ Translator.prototype.import=function(el) {
|
||||
// Allow import from local files, if the browers supports it.
|
||||
// See http://www.html5rocks.com/en/tutorials/file/dndfiles/
|
||||
var files=node("input",{name:"files","type":"file"})
|
||||
e.insertBefore(files,inp)
|
||||
var extra=wrap("span",[text("Choose a file: "),
|
||||
files,
|
||||
text(" and/or enter text to import below.")])
|
||||
e.insertBefore(extra,inp)
|
||||
}
|
||||
t.view.appendChild(e)
|
||||
e.onsubmit=done
|
||||
|
||||
Reference in New Issue
Block a user