summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhallgren <hallgren@chalmers.se>2012-06-19 14:09:24 +0000
committerhallgren <hallgren@chalmers.se>2012-06-19 14:09:24 +0000
commitb84f6cc3fc820b3d1a3d90e2b69bf371359f2e1b (patch)
treebbf3a59c7d2c057a9f444ee5ec018336db78815a
parent9bee6a90503b9fd28229726c691ab1475143d9db (diff)
translator: expanatory text for local file import
-rw-r--r--src/www/translator/about.html6
-rw-r--r--src/www/translator/translator.js5
2 files changed, 7 insertions, 4 deletions
diff --git a/src/www/translator/about.html b/src/www/translator/about.html
index f1bf573ca..1c0157945 100644
--- a/src/www/translator/about.html
+++ b/src/www/translator/about.html
@@ -45,8 +45,8 @@ closed and reopened later. Documents can be saved locally or in the cloud.
<h2>TODO</h2>
<ul>
<li>Text can be imported by copying and pasting and from local files
- in browsers that support it (Chrome, Firefox and Opera, but not Safari),
- but other ways could be added.
+ (in browsers that support it, currently Chrome, Firefox and Opera, but
+ not Safari), but other ways could be added.
<li>Text can be exported by copying and pasting, but other ways could
be added.
<li>GF's lexer/unlexer is used to allow for more natural looking text, but
@@ -64,7 +64,7 @@ closed and reopened later. Documents can be saved locally or in the cloud.
<hr>
<div class=modtime><small>
-<!-- hhmts start --> Last modified: Tue Jun 19 15:54:33 CEST 2012 <!-- hhmts end -->
+<!-- hhmts start --> Last modified: Tue Jun 19 16:07:15 CEST 2012 <!-- hhmts end -->
</small></div>
<address>
<a href="http://www.cse.chalmers.se/~hallgren/">TH</a>
diff --git a/src/www/translator/translator.js b/src/www/translator/translator.js
index 2c2cdab9d..c41c6b6c5 100644
--- a/src/www/translator/translator.js
+++ b/src/www/translator/translator.js
@@ -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