]> matita.cs.unibo.it Git - helm.git/commitdiff
Matitaweb: changes to file selection dialog box.
authormatitaweb <claudio.sacerdoticoen@unibo.it>
Thu, 8 Sep 2011 12:58:06 +0000 (12:58 +0000)
committermatitaweb <claudio.sacerdoticoen@unibo.it>
Thu, 8 Sep 2011 12:58:06 +0000 (12:58 +0000)
matitaB/matita/matitaFilesystem.ml
matitaB/matita/matitaweb.js

index 43fb985b984d2f1fda6a4539a5c6b437dacd496c..47e2ff59998f08748462230825bb32e1f87c56b0 100644 (file)
@@ -74,7 +74,7 @@ let html_of_library uid =
     let id = newid () in
     let name = Filename.basename lpath in
     let name = if name <> "." then name else "cic:/matita" in
-    "<span class=\"trigger\" onClick=\"showBranch('" ^ id ^ "','" ^ lpath ^ "')\">\n" ^
+    "<span class=\"trigger\" onClick=\"showBranch('" ^ id ^ "','" ^ lpath ^ "/')\">\n" ^
     "<img src=\"treeview/closed.gif\" id=\"I" ^ id ^ "\"/>\n" ^
     name ^ "<br/></span>\n" ^
     "<span class=\"branch\" id=\"" ^ id ^ "\">\n" ^
@@ -82,7 +82,7 @@ let html_of_library uid =
   in
   let leaf lpath =
     "<img src=\"treeview/doc.gif\"/>\n" ^
-    "<a href=\"javascript:retrieveFile('" ^ lpath ^ "')\">" ^ 
+    "<a href=\"javascript:selectFile('" ^ lpath ^ "')\">" ^ 
      (Filename.basename lpath) ^ "</a><br/>"
   in
 
index 86481a1ed15417a77dc3cdbc732cc02d17ceb7ee..c0b9458425ccde715e620507f978bb74b9de3b1b 100644 (file)
@@ -179,7 +179,7 @@ function debug(txt)
        // but google chrome's innerText is, in a sense, "write only"
        // what should we do?
         // logarea.innerText = txt + "\n" + logarea.innerText;
-        logarea.innerHTML = txt + "\n" + logarea.innerHTML;
+        logarea.innerHTML = txt; // + "\n" + logarea.innerText;
 }
 
 function listhd(l)
@@ -508,7 +508,9 @@ function gotoBottom()
                        if (len > 0) {
                          // len0 = unlocked.innerHTML.length;
                          unescaped = unlocked.innerHTML.html_to_matita();
-                         parsedtxt = parsed.childNodes[0].nodeValue;
+                          // not working in mozilla
+                         // parsedtxt = parsed.childNodes[0].nodeValue;
+                         parsedtxt = parsed.childNodes[0].wholeText;
                          //parsedtxt = unescaped.substr(0,len); 
                          unparsedtxt = unescaped.substr(len);
                          lockedbackup += parsedtxt;
@@ -612,7 +614,7 @@ function openFile()
                if (is_defined(xml)) {  
                        lockedbackup = "";
                        locked.innerHTML = lockedbackup;
-                       unlocked.innerHTML = xml.documentElement.textContent;
+                       unlocked.innerHTML = xml.documentElement.wholeText;
                } else {
                        debug("file open failed");
                }