<div class="diaTitle" id="dialogTitle"></div>
<div class="scroll" id="dialogContent"></div>
<INPUT class="diaFile" type="text" id="dialogFilename">
- <INPUT type="button" id="dialogSelect" value="OK" ONCLICK="dialogSelect()" style="width:70px">
+ <INPUT type="button" id="dialogSelect" value="OK" ONCLICK="dialogOK()" style="width:70px">
</div>
</body>
</html>
in
let leaf lpath =
"<img src=\"treeview/doc.gif\"/>\n" ^
- "<a href=\"javascript:selectFile('" ^ lpath ^ "')\">" ^
+ "<a href=\"javascript:void(0)\" onClick=\"selectFile('" ^ lpath ^ "')\" onDblClick=\"retrieveFile('" ^ lpath ^ "')\">" ^
(Filename.basename lpath) ^ "</a><br/>"
in
function selectFile(path) {\r
dialogFilename.value = path;\r
}\r
+\r
+function dialogOK() {\r
+ retrieveFile(document.getElementById("dialogFilename").value);\r
+}\r