gracefully handle lack of morphological info / capability in rel mapper
[scpubgit/stemmaweb.git] / root / src / index.tt
index cdac15f..ffc2642 100644 (file)
@@ -141,8 +141,9 @@ var textOnLoad = "[% withtradition %]";
     <!-- File upload dialog box -->
     <div id="upload-collation-dialog" title="Upload a collation">
       <div id="upload_container">
-        <label for="new_file">Collation file: </label>
-               <input id="new_file" name="file" type="file" onchange="file_selected(this)"><br/>
+               <input id="new_file" name="file" type="file" onchange="file_selected(this)">
+               <label for="new_file" id="new_file_label">Collation file: </label>
+        <div id="new_file_name_container" onclick="$('#new_file').click();">&nbsp;(Use 'pick file' to select a tradition file to upload.)</div>
         <form id="new_tradition">
             <label for="new_name">Name of this text / tradition: </label>
             <input id="new_name" type="text" name="name" size="40"/><br/>