]> matita.cs.unibo.it Git - helm.git/commitdiff
Matitaweb: more changes to file selection dialog box.
authormatitaweb <claudio.sacerdoticoen@unibo.it>
Thu, 8 Sep 2011 13:38:36 +0000 (13:38 +0000)
committermatitaweb <claudio.sacerdoticoen@unibo.it>
Thu, 8 Sep 2011 13:38:36 +0000 (13:38 +0000)
matitaB/matita/index.html
matitaB/matita/matitaFilesystem.ml
matitaB/matita/treeview/xmlTree.js

index 143d914884c7ac1cb19aaf01f5641d6f1ae4dcaf..cfaeddc4097c0afd45e0b2741b75ca0373383be1 100644 (file)
@@ -66,7 +66,7 @@
   <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> 
index 47e2ff59998f08748462230825bb32e1f87c56b0..b6a26f98bf5cb89d85ed722c6e3e682df50a9a78 100644 (file)
@@ -82,7 +82,7 @@ let html_of_library uid =
   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
 
index 9c25b413694d2039e90ff6acf8c989ea6565c5d3..18153485936aaaf9ef36d3c41c2f7a4d5f965c1e 100644 (file)
@@ -27,3 +27,7 @@ function swapFolder(img){
 function selectFile(path) {\r
        dialogFilename.value = path;\r
 }\r
+\r
+function dialogOK() {\r
+          retrieveFile(document.getElementById("dialogFilename").value);\r
+}\r